IResettableService Interface
Definition
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.
This interface must be implemented by any service that needs to be reset between different uses of the same DbContext in different pools.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public interface IResettableService
type IResettableService = interface
Public Interface IResettableService
- Derived
Remarks
The service lifetime is Scoped and multiple registrations are allowed. This means that each DbContext instance will use its own set of instances of this service. The implementations may depend on other services registered with any lifetime. The implementations do not need to be thread-safe.
See Implementation of database providers and extensions for more information and examples.
Methods
ResetState() |
Resets the service so that it can be used from the pool. |
ResetStateAsync(CancellationToken) |
Resets the service so that it can be used from the pool. |