Exemplo n.º 1
0
 public void Cancel()
 {
     _downstreamCompleted = true;
     _subscriber          = null;
     _exposedPublisher.Shutdown(new NormalShutdownException("UpstreamBoundary"));
     Cancel(In);
 }
Exemplo n.º 2
0
 public void ExposedPublisher(ActorPublisher <T> publisher)
 {
     _exposedPublisher = publisher;
     if (_upstreamFailed != null)
     {
         publisher.Shutdown(_upstreamFailed);
     }
     else
     {
         if (_upstreamCompleted)
         {
             publisher.Shutdown(null);
         }
     }
 }