Share via


ModelBus Constructor

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

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

Syntax

'Declaration
Public Sub New ( _
    serviceProvider As IServiceProvider, _
    errorCallback As Action(Of ErrorCategory, String), _
    configuration As IConfiguration _
)
public ModelBus(
    IServiceProvider serviceProvider,
    Action<ErrorCategory, string> errorCallback,
    IConfiguration configuration
)
public:
ModelBus(
    IServiceProvider^ serviceProvider, 
    Action<ErrorCategory, String^>^ errorCallback, 
    IConfiguration^ configuration
)
new : 
        serviceProvider:IServiceProvider * 
        errorCallback:Action<ErrorCategory, string> * 
        configuration:IConfiguration -> ModelBus
public function ModelBus(
    serviceProvider : IServiceProvider, 
    errorCallback : Action<ErrorCategory, String>, 
    configuration : IConfiguration
)

Parameters

  • serviceProvider
    Type: IServiceProvider

.NET Framework Security

See Also

Reference

ModelBus Class

Microsoft.VisualStudio.Modeling.Integration Namespace