/// <summary> /// イベントの発生<br/> /// </summary> /// <param name="e">メッセージ通信イベントパラメーター</param><br/> internal virtual void OnMessageReceive(MessageReceiveEventArgs e) { if (this.Receive != null) { this.Receive(this, e); } }
public static void CallFunction(this MViewModelCommunicationProvider map, MessageReceiveEventArgs args) { var dmap = table.GetOrCreateValue(map).DelegateMap; CommunicationProxyDelegate dg; if (dmap.TryGetValue(args.Address, out dg)) { dg(args); } }
/// <summary> /// メッセージ送信<br/> /// </summary> /// <param name="address">宛先</param><br/> /// <param name="message">メッセージ</param><br/> /// <param name="parameter">パラメーター</param><br/> /// <param name="unique">自己イベント判別用ユニークキー</param> public void PostMessage(Enum address, string message = null, object parameter = null, string unique = null) { var e = new MessageReceiveEventArgs { Address = Convert.ToInt32(address), Message = message, Parameter = parameter, UniqueKey = unique, }; this.OnMessageReceive(e); }
public void Test13Listner(MessageReceiveEventArgs e) { }