C# Класс WebApplications.Utilities.Threading.BufferedAction

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Duration long

Открытые методы

Метод Описание
BufferedAction ( [ action, System.Duration duration ) : NodaTime

Initializes a new instance of the BufferedAction class.

BufferedAction ( [ action, System.TimeSpan duration ) : NodaTime

Initializes a new instance of the BufferedAction class.

BufferedAction ( [ action, long duration ) : NodaTime

Initializes a new instance of the BufferedAction class.

Dispose ( ) : void

Disposes this instance.

Run ( ) : void

Buffers a call to the underlying action.

Защищенные методы

Метод Описание
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.

Описание методов

BufferedAction() публичный Метод

Initializes a new instance of the BufferedAction class.
is . is less than or equal to zero.
public BufferedAction ( [ action, System.Duration duration ) : NodaTime
action [ The action.
duration System.Duration The duration is the amount of time the result of a successful execution is held, after the point a successful request was made.
Результат NodaTime

BufferedAction() публичный Метод

Initializes a new instance of the BufferedAction class.
is . is less than or equal to zero.
public BufferedAction ( [ action, System.TimeSpan duration ) : NodaTime
action [ The action.
duration System.TimeSpan The duration is the amount of time the result of a successful execution is held, after the point a successful request was made.
Результат NodaTime

BufferedAction() публичный Метод

Initializes a new instance of the BufferedAction class.
is . is less than or equal to zero.
public BufferedAction ( [ action, long duration ) : NodaTime
action [ The action.
duration long The duration is the amount of time the result of a successful execution is held, after the point a successful request was made.
Результат NodaTime

Dispose() публичный Метод

Disposes this instance.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

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.

protected Dispose ( bool disposing ) : void
disposing bool Whether this is disposing or finalizing.
Результат void

Run() публичный Метод

Buffers a call to the underlying action.
public Run ( ) : void
Результат void

Описание свойств

Duration публичное свойство

The duration (in milliseconds) to buffer the action for.
public long Duration
Результат long