AsyncServiceScope Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An IServiceScope implementation that implements IAsyncDisposable.
public value class AsyncServiceScope : IAsyncDisposable, IDisposable, Microsoft::Extensions::DependencyInjection::IServiceScope
public readonly struct AsyncServiceScope : IAsyncDisposable, IDisposable, Microsoft.Extensions.DependencyInjection.IServiceScope
type AsyncServiceScope = struct
interface IServiceScope
interface IDisposable
interface IAsyncDisposable
Public Structure AsyncServiceScope
Implements IAsyncDisposable, IDisposable, IServiceScope
- Inheritance
- Implements
Async |
Initializes a new instance of the AsyncServiceScope struct. Wraps an instance of IServiceScope. |
Service |
The IServiceProvider used to resolve dependencies from the scope. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Dispose |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. |
Configure |
Configures how awaits on the tasks returned from an async disposable will be performed. |
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: