コード例 #1
0
 public IActivePipeContextAgent <ProcessorContext> CreateActiveContext(ISupervisor supervisor,
                                                                       PipeContextHandle <ProcessorContext> context, CancellationToken cancellationToken = new CancellationToken())
 {
     return(supervisor.AddActiveContext(context, CreateSharedConnection(context.Context, cancellationToken)));
 }
コード例 #2
0
 IActivePipeContextAgent <ConnectionContext> IPipeContextFactory <ConnectionContext> .CreateActiveContext(ISupervisor supervisor,
                                                                                                          PipeContextHandle <ConnectionContext> context, CancellationToken cancellationToken)
 {
     return(supervisor.AddActiveContext(context, CreateSharedConnection(context.Context, cancellationToken)));
 }
コード例 #3
0
 public IActivePipeContextAgent <SendEndpointContext> CreateActiveContext(ISupervisor supervisor, PipeContextHandle <SendEndpointContext> context,
                                                                          CancellationToken cancellationToken)
 {
     return(supervisor.AddActiveContext(context, CreateSharedContext(context.Context, cancellationToken)));
 }
コード例 #4
0
 public IActivePipeContextAgent <ClientContext> CreateActiveContext(ISupervisor supervisor, PipeContextHandle <ClientContext> context,
                                                                    CancellationToken cancellationToken = default)
 {
     return(supervisor.AddActiveContext(context, CreateSharedConnection(context.Context, cancellationToken)));
 }
コード例 #5
0
 public IActivePipeContextAgent <SimpleContext> CreateActiveContext(ISupervisor supervisor, PipeContextHandle <SimpleContext> context,
                                                                    CancellationToken cancellationToken = default(CancellationToken))
 {
     return(supervisor.AddActiveContext(context, CreateActiveContext(context.Context, cancellationToken)));
 }
コード例 #6
0
 public IActivePipeContextAgent <ConsumerContext <TKey, TValue> > CreateActiveContext(ISupervisor supervisor,
                                                                                      PipeContextHandle <ConsumerContext <TKey, TValue> > context, CancellationToken cancellationToken = new CancellationToken())
 {
     return(supervisor.AddActiveContext(context, CreateSharedConnection(context.Context, cancellationToken)));
 }