C# 클래스 Milkman.Common.SmartDispatcher

A smart dispatcher system for routing actions to the user interface thread.
파일 보기 프로젝트 열기: mbmccormick/Milkman

공개 메소드들

메소드 설명
BeginInvoke ( System.Action a ) : void

Executes the specified delegate asynchronously on the user interface thread. If the current thread is the user interface thread, the dispatcher if not used and the operation happens immediately.

CheckAccess ( ) : bool

Initialize ( ) : void

Initializes the SmartDispatcher system, attempting to use the RootVisual of the plugin to retrieve a Dispatcher instance.

Initialize ( CoreDispatcher dispatcher ) : void

Initializes the SmartDispatcher system with the dispatcher instance.

비공개 메소드들

메소드 설명
RequireInstance ( ) : void

Requires an instance and attempts to find a Dispatcher if one has not yet been set.

메소드 상세

BeginInvoke() 공개 정적인 메소드

Executes the specified delegate asynchronously on the user interface thread. If the current thread is the user interface thread, the dispatcher if not used and the operation happens immediately.
public static BeginInvoke ( System.Action a ) : void
a System.Action A delegate to a method that takes no arguments and /// does not return a value, which is either pushed onto the Dispatcher /// event queue or immediately run, depending on the current thread.
리턴 void

CheckAccess() 공개 정적인 메소드

public static CheckAccess ( ) : bool
리턴 bool

Initialize() 공개 정적인 메소드

Initializes the SmartDispatcher system, attempting to use the RootVisual of the plugin to retrieve a Dispatcher instance.
public static Initialize ( ) : void
리턴 void

Initialize() 공개 정적인 메소드

Initializes the SmartDispatcher system with the dispatcher instance.
public static Initialize ( CoreDispatcher dispatcher ) : void
dispatcher Windows.UI.Core.CoreDispatcher The dispatcher instance.
리턴 void