Exemple #1
0
 private void ReceiveMessage(ExternalMessage m)
 {
     Task.Run(delegate
     {
         _helper.UnPackSendReceivedMessage(m);
     });
 }
Exemple #2
0
 private void Send <T>(ExternalMessage externalMessage) where T : BaseTransportMessage
 {
     _m.SendAsync <T>(externalMessage.Message as T);
 }
Exemple #3
0
        public void UnPackSendReceivedMessage(ExternalMessage m)
        {
            var generic = _generics.GetOrAdd(m.Type, t => _sendMethod.MakeGenericMethod(m.Type));

            generic.Invoke(this, new object[] { m });
        }