C# Class WebApplications.Utilities.Threading.BufferedAction.ActionBuffer

An individual buffered action.
Inheritance: IDisposable
ファイルを表示 Open project: webappsuk/CoreLibraries

Public Methods

Method Description
ActionBuffer ( [ action ) : NodaTime

Initializes a new instance of the ActionBuffer class.

Add ( object arguments ) : void
Dispose ( ) : void

Disposes this instance.

Private Methods

Method Description
Dispose ( bool disposing ) : void

Disposes the specified instance.

disposing indicates whether the method was invoked from the IDisposable.Dispose implementation or from the finalizer. The implementation should check the parameter before accessing other reference objects. Such objects should only be accessed when the method is called from the IDisposable.Dispose implementation (when the disposing parameter is equal to ). If the method is invoked from the finalizer (disposing is false), other objects should not be accessed. The reason is that objects are finalized in an unpredictable order and so they, or any of their dependencies, might already have been finalized.

OnTick ( object state ) : void

Called when we have a timer tick.

Method Details

ActionBuffer() public method

Initializes a new instance of the ActionBuffer class.
public ActionBuffer ( [ action ) : NodaTime
action [ The action.
return NodaTime

Add() public method

public Add ( object arguments ) : void
arguments object
return void

Dispose() public method

Disposes this instance.
public Dispose ( ) : void
return void