Table of Contents

Struct ServiceScope

Namespace
Microsoft.Extensions.DependencyInjection
Assembly
nanoFramework.DependencyInjection.dll

An IServiceScope implementation that implements IDisposable.

public readonly struct ServiceScope : IServiceScope, IDisposable
Implements
Inherited Members

Constructors

ServiceScope(IServiceScope)

Initializes a new instance of the ServiceScope struct. Wraps an instance of IServiceScope.

public ServiceScope(IServiceScope serviceScope)

Parameters

serviceScope IServiceScope

The IServiceScope instance to wrap.

Properties

ServiceProvider

The IServiceProvider used to resolve dependencies from the scope.

public IServiceProvider ServiceProvider { get; }

Property Value

IServiceProvider

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()