Class ExclusiveBlock

Ensures operation exclusivity without lock.

Inheritance
System.Object
Disposable
ExclusiveBlock
Implements
IDisposableEx
System.IDisposable
System.IAsyncDisposable
Inherited Members
Disposable.AsyncDispose()
Disposable.CheckNotDisposed()
Disposable.Dispose()
Disposable.DisposeAsync()
Disposable.Disposed
Disposable.Disposing
Namespace: Solti.Utils.Primitives.Threading
Assembly: Solti.Utils.Primitives.dll
Syntax
public sealed class ExclusiveBlock : Disposable, IDisposableEx
Remarks

This class is intended to signal the attempt to call non thread safe code parallelly.

Constructors

ExclusiveBlock()

Creates a new ExclusiveBlock instance.

Declaration
public ExclusiveBlock()

ExclusiveBlock(ExclusiveBlockFeatures)

Creates a new ExclusiveBlock instance.

Declaration
public ExclusiveBlock(ExclusiveBlockFeatures features)
Parameters
Type Name Description
ExclusiveBlockFeatures features

Properties

Features

Describes the features of this instance.

Declaration
public ExclusiveBlockFeatures Features { get; }
Property Value
Type Description
ExclusiveBlockFeatures

Methods

Dispose(Boolean)

Contains the disposal related logic.

Declaration
protected override void Dispose(bool disposeManaged)
Parameters
Type Name Description
System.Boolean disposeManaged
Overrides
Disposable.Dispose(Boolean)

Enter()

Gets the scope for an exclusive operation.

Declaration
public IDisposable Enter()
Returns
Type Description
System.IDisposable

Implements

IDisposableEx
System.IDisposable
System.IAsyncDisposable
In This Article
Back to top Generated by DocFX