Struct ConcurrencyDetectorCriticalSectionDisposer
- Namespace
- Microsoft.EntityFrameworkCore.Infrastructure
- Assembly
- Microsoft.EntityFrameworkCore.dll
A IDisposable returned by an IConcurrencyDetector, which will exit the ongoing critical section when disposed.
public readonly struct ConcurrencyDetectorCriticalSectionDisposer : IDisposable
- Implements
- Inherited Members
Remarks
See Implementation of database providers and extensions for more information and examples.
Constructors
ConcurrencyDetectorCriticalSectionDisposer(IConcurrencyDetector)
Constructs a new ConcurrencyDetectorCriticalSectionDisposer.
public ConcurrencyDetectorCriticalSectionDisposer(IConcurrencyDetector concurrencyDetector)
Parameters
concurrencyDetector
IConcurrencyDetectorThe IConcurrencyDetector on which the critical section will be exited.
Methods
Dispose()
public void Dispose()