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 |
The function to execute. |
Return Value
Type | Description |
---|---|
TRet | The return value of the function. |