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