Ejemplo n.º 1
0
 public string SendRequest(string message, string sessionId, bool fromClient, string from, string to = null)
 {
     var entity = new InProcMessageEntity(message, sessionId, fromClient, from, to);
     _queue.TryAdd(entity.ID, entity);
     return entity.ID.ToString();
 }
Ejemplo n.º 2
0
 public void SendReply(string message, string sessionId, bool fromClient, string replyTo)
 {
     var entity = new InProcMessageEntity(message, sessionId, fromClient, null, replyTo);
     _queue.TryAdd(entity.ID, entity);
 }