Struct ServiceScope
An IServiceScope implementation that implements IDisposable.
Inherited Members
Namespace: nanoFramework.DependencyInjection
Assembly: nanoFramework.DependencyInjection.dll
Syntax
public readonly struct ServiceScope : IServiceScope, IDisposable
Constructors
ServiceScope(IServiceScope)
Initializes a new instance of the ServiceScope struct. Wraps an instance of IServiceScope.
Declaration
public ServiceScope(IServiceScope serviceScope)
Parameters
Type | Name | Description |
---|---|---|
IServiceScope | serviceScope | The IServiceScope instance to wrap. |
Properties
ServiceProvider
The IServiceProvider used to resolve dependencies from the scope.
Declaration
public IServiceProvider ServiceProvider { get; }
Property Value
Type | Description |
---|---|
IServiceProvider |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()