Exemple #1
0
 private void Receive(IMessage message, string address)
 {
     if (_handleMessage != null)
     {
         var connectionId = message.ConnectionId.GetString();
         if (!string.IsNullOrEmpty(connectionId))
         {
             MemoryAddress from;
             if (!_addresses.TryGetValue(connectionId, out from))
             {
                 from = new MemoryAddress(address);
                 _addresses[connectionId] = from;
             }
             _handleMessage(message, from);
         }
     }
 }
Exemple #2
0
 public MemoryTransport(string me)
 {
     _me = new MemoryAddress(me);
     Transports[me] = this;
 }