C# 클래스 System.Waf.Foundation.ThrottledAction

This class supports throttling of multiple method calls to improve the responsiveness of an application. It delays a method call and skips all additional calls of this method during the delay. The call of the action is synchronized. It uses the current synchronization context that was active during creating this class.
This class is thread-safe.
파일 보기 프로젝트 열기: jbe2277/waf 1 사용 예제들

공개 메소드들

메소드 설명
Cancel ( ) : void

Cancel the execution of the action delegate that was requested.

InvokeAccumulated ( ) : void

Requests the execution of the action delegate.

ThrottledAction ( Action action ) : System.Threading

Initializes a new instance of the ThrottledAction class.

ThrottledAction ( Action action, ThrottledActionMode mode, TimeSpan delayTime ) : System.Threading

Initializes a new instance of the ThrottledAction class.

비공개 메소드들

메소드 설명
TimerCallback ( object state ) : void

메소드 상세

Cancel() 공개 메소드

Cancel the execution of the action delegate that was requested.
public Cancel ( ) : void
리턴 void

InvokeAccumulated() 공개 메소드

Requests the execution of the action delegate.
public InvokeAccumulated ( ) : void
리턴 void

ThrottledAction() 공개 메소드

Initializes a new instance of the ThrottledAction class.
The argument action must not be null.
public ThrottledAction ( Action action ) : System.Threading
action Action The action that should be throttled.
리턴 System.Threading

ThrottledAction() 공개 메소드

Initializes a new instance of the ThrottledAction class.
The argument action must not be null.
public ThrottledAction ( Action action, ThrottledActionMode mode, TimeSpan delayTime ) : System.Threading
action Action The action that should be throttled.
mode ThrottledActionMode Defines the throttling mode.
delayTime TimeSpan The delay time.
리턴 System.Threading