Creates a DisposableCollection that is disposed automatically when
the extension deactivates, by registering itself in context.subscriptions.
For user-owned resources only. context.subscriptions is a synchronous
disposal surface, so anything needing asynchronous teardown belongs in a
hosted service or an application-owned ResourceScope instead.
Creates a DisposableCollection that is disposed automatically when the extension deactivates, by registering itself in
context.subscriptions.For user-owned resources only.
context.subscriptionsis a synchronous disposal surface, so anything needing asynchronous teardown belongs in a hosted service or an application-ownedResourceScopeinstead.