private void PossibleSendMessage(BaseTransportMessage m) { if (m.IsRemote) { return; } _extensions.ForEach(x => Task.Run(() => x.Send(m))); }
public ExternalMessage(ObjectId clientId, BaseTransportMessage message) { ClientId = clientId; Message = message; if (message == null) { return; } message.ClientId = clientId; message.IsRemote = true; }
public ExternalMessage(ObjectId sessionId, BaseTransportMessage message) { SessionId = sessionId; Message = message; if (message == null) { return; } message.SessionId = sessionId; message.IsRemote = true; }