Ejemplo n.º 1
0
 private void EnsurePipeline()
 {
     if (_incomingPipeline == null)
     {
         IHubPipelineModule module = _modules.Reverse().Aggregate((a, b) => new ComposedModule(a, b));
         _incomingPipeline        = module.BuildIncoming(HubDispatcher.Incoming);
         _connectPipeline         = module.BuildConnect(HubDispatcher.Connect);
         _reconnectPipeline       = module.BuildReconnect(HubDispatcher.Reconnect);
         _disconnectPipeline      = module.BuildDisconnect(HubDispatcher.Disconnect);
         _rejoiningGroupsPipeline = module.BuildRejoiningGroups(HubDispatcher.RejoiningGroups);
         _outgoingPipeling        = module.BuildOutgoing(HubDispatcher.Outgoing);
     }
 }
Ejemplo n.º 2
0
 public Func <IHubOutgoingInvokerContext, Task> BuildOutgoing(Func <IHubOutgoingInvokerContext, Task> send)
 {
     return(_left.BuildOutgoing(_right.BuildOutgoing(send)));
 }