Ejemplo n.º 1
0
 /// <summary>
 /// used by Server side
 /// </summary>
 /// <param name="msg"></param>
 public static void BroadCastClient(BroadCastMessage msg)
 {
     if (ClientProxy != null)
     {
         ClientProxy.BroadCast(msg);
     }
 }
Ejemplo n.º 2
0
        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);
                }
            }
        }
Ejemplo n.º 3
0
 public void BroadCast(BroadCastMessage msg)
 {
     base.Channel.BroadCast(msg);
 }
Ejemplo n.º 4
0
 public void BroadCast(BroadCastMessage msg)
 {
     BroadCastManager.BroadCastServer(msg);
 }
Ejemplo n.º 5
0
 public static void BroadCastServer(BroadCastMessage msg)
 {
     ParallelTaskPool.Enqueue(new ParallelTask <BroadCastMessage>(BroadCastManager.BroadCastCore, msg));
 }