Exemple #1
0
        private void PossibleSendMessage(BaseTransportMessage m)
        {
            if (m.IsRemote)
            {
                return;
            }

            _extensions.ForEach(x => Task.Run(() => x.Send(m)));
        }
Exemple #2
0
        public ExternalMessage(ObjectId clientId, BaseTransportMessage message)
        {
            ClientId = clientId;
            Message  = message;

            if (message == null)
            {
                return;
            }

            message.ClientId = clientId;
            message.IsRemote = true;
        }
Exemple #3
0
        public ExternalMessage(ObjectId sessionId, BaseTransportMessage message)
        {
            SessionId = sessionId;
            Message   = message;

            if (message == null)
            {
                return;
            }

            message.SessionId = sessionId;
            message.IsRemote  = true;
        }