Ejemplo n.º 1
0
 public void PushGonggao (GonggaoData  gonggao)
 { 
      mEventAggregator.GetEvent<ReceivedGonggaoEvent>().Publish(new ReceivedGonggaoData(){ Body = gonggao.RtfData, Id = gonggao.Id });
 }
Ejemplo n.º 2
0
        public void SendGonggaoAsync(GonggaoData gonggao)
        {
            Task.Run(() =>
            {
                var xiakes = this.GetOnlineXiakes();
                System.Threading.Tasks.Parallel.ForEach(xiakes, loginXiake =>
                {
                    try
                    {
                        loginXiake.ClientFace.PushGonggao(gonggao);

                    } catch(Exception e)
                    {
                        
                        
                    }
                    
                }); 
            });
        }
Ejemplo n.º 3
0
 public void PushGonggao (GonggaoData gonggao)
 {
     Task.Run(() =>
     {
         mService.Service.PushGonggao(gonggao);
     }); 
 }
Ejemplo n.º 4
0
        public void PushGonggao (GonggaoData gonggao)
        {
            LogHelper.Log.Info("Master recived gonggao to repush.");
            foreach(var dog in mService)
            {
                try
                {
                    if(dog.CommunicationObject.State == CommunicationState.Opened)
                        dog.Channel.PushGonggao(gonggao);
                } catch(Exception ee)
                { 

                }

            }
                
        }