Note
In NServiceBus Versions 6 and above, and all integrations that target those versions, all extension points that return Task
cannot return a null Task. These APIs must return an instance of a Task, i.e. a pending Task or a CompletedTask
, or be marked async
. For extension points that return a Task<T>
, return the value directly (for async methods) or wrap the value in a Task.FromResult(value)
.