Exemplo n.º 1
0
 /// <summary>
 /// Invokes the specified <see cref="System.Action{TPayload}"/> asynchronously in the specified <see cref="Dispatcher"/>.
 /// </summary>
 /// <param name="action">The action to execute.</param>
 /// <param name="argument">The payload to pass <paramref name="action"/> while invoking it.</param>
 public override void InvokeAction(Action <TPayload> action, TPayload argument)
 {
     dispatcher.BeginInvoke(action, argument);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 在UI线程上回调动作action
 /// </summary>
 /// <param name="action">动作action</param>
 /// <param name="argument1">MessageSender</param>
 /// <param name="argument2">TMessage</param>
 public override void InvokeAction(Action <MessageSender, TMessage> action, MessageSender argument1, TMessage argument2)
 {
     dispatcher.BeginInvoke(action, argument1, argument2);
 }