ServiceProvider.destroyScope

Destroys a scope.

Behaviour: Currently, destroying a scope simply means that the ServiceProvider can reuse a small amount of memory whenever a new scope is created.

In the future I'd like to add more functionality, such as detecting scoped services that implement specific interfaces for things such as IDisposableService, IReusableService, etc.

class ServiceProvider
final
void
destroyScope

Parameters

serviceScope ServiceScope

The master ServiceScope representing the scope to destroy.

Meta