/// <summary> /// used by Server side /// </summary> /// <param name="msg"></param> public static void BroadCastClient(BroadCastMessage msg) { if (ClientProxy != null) { ClientProxy.BroadCast(msg); } }
internal static void BroadCastCore(BroadCastMessage msg) { if (BroadCastService.ReceiverList == null || BroadCastService.ReceiverList.Count == 0) { return; } lock (BroadCastService.ReceiverList) { foreach (IBroadCastReceiver receiver in BroadCastService.ReceiverList) { receiver.Receive(msg); } } }
public void BroadCast(BroadCastMessage msg) { base.Channel.BroadCast(msg); }
public void BroadCast(BroadCastMessage msg) { BroadCastManager.BroadCastServer(msg); }
public static void BroadCastServer(BroadCastMessage msg) { ParallelTaskPool.Enqueue(new ParallelTask <BroadCastMessage>(BroadCastManager.BroadCastCore, msg)); }