Table of Contents

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)

public ConcurrencyDetectorCriticalSectionDisposer(IConcurrencyDetector concurrencyDetector)

Parameters

concurrencyDetector IConcurrencyDetector

The IConcurrencyDetector on which the critical section will be exited.

Methods

Dispose()

public void Dispose()