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

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

            if (message == null)
            {
                return;
            }

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

            if (message == null)
            {
                return;
            }

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