Method WithRouting
WithRouting(CommandRouting)
Creates a new context with different routing, preserving all other fields.
public CommandContext WithRouting(CommandRouting routing)
Parameters
routingCommandRoutingThe new routing mode.
Returns
- CommandContext
A new CommandContext with the specified routing.