Struct ServiceScope
An IService
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 Service
Declaration
public ServiceScope(IServiceScope serviceScope)
Parameters
Type | Name | Description |
---|---|---|
IService |
serviceScope | The IService |
Properties
ServiceProvider
The IService
Declaration
public IServiceProvider ServiceProvider { get; }
Property Value
Type | Description |
---|---|
IService |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()