ServiceProviderExtensions.GetMessageBus(IServiceProvider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the message bus from the IServiceProvider.
public static Microsoft.Testing.Platform.Messages.IMessageBus GetMessageBus(this IServiceProvider serviceProvider);
static member GetMessageBus : IServiceProvider -> Microsoft.Testing.Platform.Messages.IMessageBus
<Extension()>
Public Function GetMessageBus (serviceProvider As IServiceProvider) As IMessageBus
Parameters
- serviceProvider
- IServiceProvider
The service provider.
Returns
The message bus.