Method DispatchAsync(Func<IExchange>, TransportSpan, PushRetry?, Func<IExchange, CancellationToken, Task>?)
Runs one message through the route and says what became of it; the connector settles it by the outcome. Refused
when a stop has begun (also when the stop began while the message waited for a slot); counted as in work until it
returns, so a stop's drain waits for it. Each attempt runs on a fresh exchange from createExchange
and is disposed after it. A route that failed is tried again by retry; after the last attempt the
failure marks span and the outcome is .
protected Task<PushDispatch> DispatchAsync(Func<IExchange> createExchange, TransportSpan span, PushRetry? retry = null, Func<IExchange, CancellationToken, Task>? afterRoute = null)