Skip to content

Latest commit

 

History

History
2 lines (2 loc) · 758 Bytes

non-null-task.include.md

File metadata and controls

2 lines (2 loc) · 758 Bytes

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).