Пример #1
0
 public void Add(long session, ReceiveAgent receiver, Client sender)
 {
     this._Container.TryAdd(session, new ClientRelation(sender, receiver));
 }
Пример #2
0
 public ClientRelation(Client sender, ReceiveAgent receiver)
 {
     this._Receiver = receiver;
     this._Sender = sender;
 }
Пример #3
0
 public void Add(Session session, ReceiveAgent receiver, Client sender)
 {
     _ClientsProcessor.Add(session, receiver, sender);
 }
 public SenderReceiverPair(Client sender, ReceiveAgent receiver)
 {
     this._Receiver = receiver;
     this._Sender = sender;
 }
Пример #5
0
 public bool Add(Session session, ReceiveAgent receiver,Client sender)
 {
     return _Clients.TryAdd(session, new SenderReceiverPair(sender, receiver));
 }