The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

MessageBusExtensions.

WithMessageBus(IMessageBus) Method

Summary

WithMessageBus allows you to override the default Message Bus implementation until the object returned is disposed. If a message bus is not specified, a default empty one is created.
Namespace
ReactiveUI.Testing
Containing Type
MessageBusExtensions

Syntax

public static IDisposable WithMessageBus(this IMessageBus messageBus)

Parameters

Name Type Description
messageBus IMessageBus The message bus to use, or null to create a new one using the default implementation.

Return Value

Type Description
IDisposable An object that when disposed, restores the original message bus.