You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use async scope to make sure scoped IAsyncDisposable instances get disposed (#6650) (#6658)
* AcceptanceTest to verify scoped async disposable support
* use CreateAsyncScope
* Add Assert
* Extend test for singletons
* Owned builder should be disposed using async disposable
* Async dispose token registration
* Dispose stopping token source
* Fix leaking token source
* Enable nullable in RunningEndpointInstance to indicate case when builder is null
* Make the externally managed mode more visible in the code
* Coverage of externally and internally managed mode
* Rename tests
Co-authored-by: Simon <[email protected]>
Co-authored-by: Simon <[email protected]>
Copy file name to clipboardExpand all lines: src/NServiceBus.Core/EndpointInstanceExtensions.cs
+5-2
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,10 @@ public static class EndpointInstanceExtensions
17
17
/// <param name="endpoint">The endpoint to stop.</param>
18
18
/// <param name="gracefulStopTimeout">The length of time granted to gracefully complete processing.</param>
19
19
[SuppressMessage("Code","PS0018:A task-returning method should have a CancellationToken parameter unless it has a parameter implementing ICancellableContext",Justification="Convenience method wrapping the CancellationToken overload.")]
// This can't happen at start due to an old "feature" that allowed users to
65
62
// run installers by "just creating the endpoint". See https://docs.particular.net/nservicebus/operations/installers#running-installers for more details.
0 commit comments