public ISendingAgent BuildSendingAgent(Uri uri, IMessagingRoot root, CancellationToken cancellation)
 {
     return(uri.IsDurable()
         ? root.BuildDurableLoopbackAgent(uri)
         : new LoopbackSendingAgent(uri, root.Workers));
 }
 public void Start(IMessagingRoot root)
 {
     _durable     = root.BuildDurableLoopbackAgent(TransportConstants.DurableLoopbackUri);
     _lightweight = new LoopbackSendingAgent(TransportConstants.LoopbackUri, root.Workers);
 }