MessageBusExtensions.With(IMessageBus, Func) method¶
Defined in
Type: MessageBusExtensions
Namespace: ReactiveUI.Testing
Assembly: ReactiveUI.Testing.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471
Overloads¶
- 1.
public static TRet With<TRet>(this IMessageBus messageBus, Func<TRet> block) - 2.
public static void With(this IMessageBus messageBus, Action block)
1. Overload¶
public static TRet With<TRet>(this IMessageBus messageBus, Func<TRet> block)
Summary: Override the default Message Bus during the specified 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. |
Returns: TRet -- The return value of the function.
2. Overload¶
public static void With(this IMessageBus messageBus, Action block)
Summary: Override the default Message Bus during the specified block.
Parameters
| Name | Type | Description |
|---|---|---|
messageBus | [IMessageBus](# | The message bus to use for the block. |
block | Action | The action to execute. |