ModelBus Class

 

ModelBus allows tools to interoperate in a loosely coupled fashion.

Namespace:   Microsoft.VisualStudio.Modeling.Integration
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll)

System.Object
  Microsoft.VisualStudio.Modeling.Integration.ModelBus

type ModelBus = 
    class
        interface IModelBus
        interface IServiceProvider
        interface SModelBus
        interface IDisposable
    end

NameDescription
System_CAPS_pubmethodModelBus(IServiceProvider, Action<ErrorCategory, String>, IConfiguration)

Constructor -- the application hosting the ModelBus should pass in an IServiceProvider instance so the ModelBus can request services.

NameDescription
System_CAPS_pubpropertyDisposed

True if this Moldebus instance has been disposed, false otherwise.

System_CAPS_pubpropertyErrorCallback

Delegate supplied by the host. Used to log errors.

NameDescription
System_CAPS_pubmethodCreateAdapter(ModelBusReference)

Implements CreateAdapter method

System_CAPS_pubmethodCreateAdapter(ModelBusReference, IServiceProvider)

Implements CreateAdapter method

System_CAPS_pubmethodDeserializeReference(String, ReferenceContext)

Deserializes the supplied string and returns a ModelBusReference.

System_CAPS_pubmethodDispose()

System_CAPS_protmethodDispose(Boolean)

Dispose this ModelBus instance.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

Destructor.(Overrides Object.Finalize().)

System_CAPS_pubmethodFindAdapterManagers(Object[])

Finds the list of ModelBusAdapter managers whose ModelBusAdapter scopes are described by the given context information. There may be multiple ModelBusAdapter managers that can work with the model, for example a .xml file can be opened by XML editor or Text editor.

System_CAPS_pubmethodGetAdapterManager(String)

Locate a ModelBusAdapterManager instance using its Id.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetRegisteredAdapterManagers<'T>()

Get the set of loaded, registered adapter managers of type T

System_CAPS_pubmethodGetService(Type)

Returns Adapters provided by the ModeBus or by its host.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodLogError(ErrorCategory, String)

Logs an error

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSerializeReference(ModelBusReference)

Serializes the supplied reference to a string that can be persisted by the caller.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodValidateReference(ModelBusReference, ValidateReferenceOption)

Validates a given reference using the corresponding adapter. This method updates the LastStatus of a reference in addition to returning it.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: