Share via


ModelBusAdapterManager Class

 

The ModelBusAdapterManager is used to create instances of the supported ModelBusAdapter, and manage their lifetime. Derive from this class to create a ModelBusAdapterManager for your own DSL.

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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Integration.ModelBusAdapterManager
    Microsoft.VisualStudio.Modeling.Integration.Shell.VsModelingAdapterManager

Syntax

public abstract class ModelBusAdapterManager : IDisposable
public ref class ModelBusAdapterManager abstract : IDisposable
[<AbstractClass>]
type ModelBusAdapterManager = 
    class
        interface IDisposable
    end
Public MustInherit Class ModelBusAdapterManager
    Implements IDisposable

Constructors

Name Description
System_CAPS_protmethod ModelBusAdapterManager()

Properties

Name Description
System_CAPS_pubproperty Disposed

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

System_CAPS_pubproperty ModelBus

Gets the Backplane instance that this ModelBusAdapterManager is registered with.

Methods

Name Description
System_CAPS_pubmethod CanCreateReference(Object[])

Can this ModelBusAdapter manager create a scope described by the given contextual information about a model?

System_CAPS_pubmethod CreateAdapter(ModelBusReference)

Create a ModelBusAdapter wrapping the specified model. Throws an exception if the ModelBusAdapter cannot be created.

System_CAPS_pubmethod CreateAdapter(ModelBusReference, IServiceProvider)

Create a ModelBusAdapter instance supported by this ModelBusAdapterManager.

System_CAPS_pubmethod CreateReference(Object[])

Attempts to create and return a model bus reference from the supplied data.

System_CAPS_protmethod DeserializeAdapterReference(String, ReferenceContext)

Attempt to deserialize the supplied adapter reference, with the help of the reference context.

System_CAPS_pubmethod Dispose()

System_CAPS_protmethod Dispose(Boolean)

Dispose this ModelBusAdapterManager instance.

System_CAPS_protmethod DoCreateAdapter(ModelBusReference, IServiceProvider)

Actual creation of the ModelBusAdapter instance supported by this ModelBusAdapterManager.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

Destructor.(Overrides Object.Finalize().)

System_CAPS_pubmethod GetExposedElementTypes(String)

Get a collection of all the ModelElement types which are exposed by any ModelBusAdapter managed by this adapter manager, and thus can be referenced from the outside, along with their display name;

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetSupportedLogicalAdapterIds()

Returns the IDs of the adapter types that are supported by this adapter manager

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod GetView(ModelBusAdapter, ModelBusReference)

Obtains the View, for example a diagram, associated with the ModelBusAdapter passed as a parameter.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod SerializeAdapterReference(ModelBusAdapterReference, ReferenceContext)

Serializes the supplied adapter reference and returns it as a string

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TryCreateReference(ModelBusReference, Object[])

The ModelBusAdapterManager will attempt to create a model bus reference to a model from the supplied information.

System_CAPS_pubmethod ValidateReference(ModelBusReference, ValidateReferenceOption)

Validates the reference and set the LastStatus accordingly. The default implementation is to create an adapter in order to check if model can be resolved or not.

Remarks

For more information, see Integrating Models by using Visual Studio Modelbus.

Thread Safety

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

See Also

Microsoft.VisualStudio.Modeling.Integration Namespace

Return to top