C# 클래스 WebApplications.Utilities.Threading.BufferedAction

상속: IDisposable
파일 보기 프로젝트 열기: webappsuk/CoreLibraries 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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