ServiceScopeFactory class abstract interface

A factory for creating instances of ServiceScope, which is used to create services within a scope.

Adapted from Microsoft.Extensions.DependencyInjection.IServiceScopeFactory

Available extensions

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createAsyncScope() AsyncDisposable

Available on ServiceScopeFactory, provided by the ServiceScopeFactoryExtensions extension

Creates a new AsyncServiceScope that can be used to resolve scoped services.
createScope() ServiceScope
Create a ServiceScope which contains a ServiceProvider used to resolve dependencies from a newly created scope.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited