C# 클래스 refw.Dispatcher

This class models a basic cross-thread dispatcher as used in WinForms and WPF. One thread executes code through InvokeInvokes, while other threads queue up functions to be called in the main thread asynchronously with BeginInvoke or synchronously with Invoke.
파일 보기 프로젝트 열기: fry/refw

공개 메소드들

메소드 설명
BeginInvoke ( System.Action action ) : EventWaitHandle

Queue up a delegate without waiting for it to finish.

Invoke ( System.Action action ) : void

Queue up a delegate and return once it finishes

InvokeInvokes ( ) : void

Call all pending delegates and invoke their listening thread of their completion afterwards.

메소드 상세

BeginInvoke() 공개 메소드

Queue up a delegate without waiting for it to finish.
public BeginInvoke ( System.Action action ) : EventWaitHandle
action System.Action delegate to be called by the owning thread
리턴 System.Threading.EventWaitHandle

Invoke() 공개 메소드

Queue up a delegate and return once it finishes
public Invoke ( System.Action action ) : void
action System.Action delegate to be called by the owning thread
리턴 void

InvokeInvokes() 공개 메소드

Call all pending delegates and invoke their listening thread of their completion afterwards.
public InvokeInvokes ( ) : void
리턴 void