public void PushGonggao (GonggaoData gonggao) { mEventAggregator.GetEvent<ReceivedGonggaoEvent>().Publish(new ReceivedGonggaoData(){ Body = gonggao.RtfData, Id = gonggao.Id }); }
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) { } }); }); }
public void PushGonggao (GonggaoData gonggao) { Task.Run(() => { mService.Service.PushGonggao(gonggao); }); }
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) { } } }