C# Class WebApplications.Utilities.Threading.AsyncSemaphore.AllReleaser

Used to release multiple semaphores that have been waited on by WaitAllAsync.
Show file Open project: webappsuk/CoreLibraries

Public Properties

Property Type Description
Default IDisposable

Private Properties

Property Type Description

Public Methods

Method Description
AllReleaser ( int count ) : System

Initializes a new instance of the AllReleaser struct.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Method Details

AllReleaser() public method

Initializes a new instance of the AllReleaser struct.
public AllReleaser ( int count ) : System
count int The total possible number of semaphores.
return System

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Property Details

Default public static property

A default instance of the releaser that does nothing.
public static IDisposable Default
return IDisposable