Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.12.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: System.IServiceProvider
- errorCallback
 Type: System.Action<ErrorCategory, String>
- configuration
 Type: Microsoft.VisualStudio.Modeling.Integration.IConfiguration
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.