Exemplo n.º 1
0
 public ISendingAgent BuildSendingAgent(Uri uri, CancellationToken cancellation)
 {
     return(uri.IsDurable()
         ? _persistence.BuildLocalAgent(uri, _workerQueue)
         : new LoopbackSendingAgent(uri, _workerQueue));
 }
Exemplo n.º 2
0
 public void Start(IPersistence persistence, IWorkerQueue workers)
 {
     _durable     = persistence.BuildLocalAgent(TransportConstants.DurableLoopbackUri, workers);
     _lightweight = new LoopbackSendingAgent(TransportConstants.LoopbackUri, workers);
 }