public IActivePipeContextAgent <ProcessorContext> CreateActiveContext(ISupervisor supervisor, PipeContextHandle <ProcessorContext> context, CancellationToken cancellationToken = new CancellationToken()) { return(supervisor.AddActiveContext(context, CreateSharedConnection(context.Context, cancellationToken))); }
IActivePipeContextAgent <ConnectionContext> IPipeContextFactory <ConnectionContext> .CreateActiveContext(ISupervisor supervisor, PipeContextHandle <ConnectionContext> context, CancellationToken cancellationToken) { return(supervisor.AddActiveContext(context, CreateSharedConnection(context.Context, cancellationToken))); }
public IActivePipeContextAgent <SendEndpointContext> CreateActiveContext(ISupervisor supervisor, PipeContextHandle <SendEndpointContext> context, CancellationToken cancellationToken) { return(supervisor.AddActiveContext(context, CreateSharedContext(context.Context, cancellationToken))); }
public IActivePipeContextAgent <ClientContext> CreateActiveContext(ISupervisor supervisor, PipeContextHandle <ClientContext> context, CancellationToken cancellationToken = default) { return(supervisor.AddActiveContext(context, CreateSharedConnection(context.Context, cancellationToken))); }
public IActivePipeContextAgent <SimpleContext> CreateActiveContext(ISupervisor supervisor, PipeContextHandle <SimpleContext> context, CancellationToken cancellationToken = default(CancellationToken)) { return(supervisor.AddActiveContext(context, CreateActiveContext(context.Context, cancellationToken))); }
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))); }