Class Controller
带有Dispatcher的控制器
public abstract class Controller : ControllerBase, IController
- Inheritance
-
Controller
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
Dispatcher
public Dispatcher Dispatcher { get; }
Property Value
Methods
BeginInvoke(Action)
系统空闲时运行
public void BeginInvoke(Action action)
Parameters
action
Action
Invoke(Action)
应用主线程运行
public void Invoke(Action action)
Parameters
action
Action
Invoke<T>(Func<T>)
应用主线程运行
public T Invoke<T>(Func<T> func)
Parameters
func
Func<T>
Returns
- T
Type Parameters
T
RunAsync(Action)
异步运行
public void RunAsync(Action action)
Parameters
action
Action
RunOnlyInitailizing(Action, string)
只运行一次的方法
public void RunOnlyInitailizing(Action action, string name = "")