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

MessageBusExtensions.

With<TRet>(IMessageBus, Func<TRet>) Method

Summary

Override the default Message Bus during the specified block.
Namespace
ReactiveUI.Testing
Containing Type
MessageBusExtensions

Syntax

public static TRet With<TRet>(this IMessageBus messageBus, Func<TRet> block)

Type Parameters

Name Description
TRet The return type.

Parameters

Name Type Description
messageBus IMessageBus The message bus to use for the block.
block Func<TRet> The function to execute.

Return Value

Type Description
TRet The return value of the function.