Class TaskSchedulerSubscribableChannel
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class TaskSchedulerSubscribableChannel : AbstractSubscribableChannel, IInterceptableChannel, ISubscribableChannel, IMessageChannel, IServiceNameAware
- Inheritance
-
TaskSchedulerSubscribableChannel
- Implements
- Inherited Members
Constructors
TaskSchedulerSubscribableChannel(ILogger)
public TaskSchedulerSubscribableChannel(ILogger logger = null)
Parameters
loggerILogger
TaskSchedulerSubscribableChannel(TaskScheduler, ILogger)
public TaskSchedulerSubscribableChannel(TaskScheduler scheduler, ILogger logger = null)
Parameters
schedulerTaskSchedulerloggerILogger
Fields
_schedulerInterceptors
protected List<ITaskSchedulerChannelInterceptor> _schedulerInterceptors
Field Value
Properties
Factory
protected TaskFactory Factory { get; }
Property Value
Scheduler
protected TaskScheduler Scheduler { get; }
Property Value
Methods
AddInterceptor(IChannelInterceptor)
Add an interceptor to the list
public override void AddInterceptor(IChannelInterceptor interceptor)
Parameters
interceptorIChannelInterceptorthe interceptor to add
AddInterceptor(int, IChannelInterceptor)
Add an interceptor at the location specified by the index
public override void AddInterceptor(int index, IChannelInterceptor interceptor)
Parameters
indexintthe index to add the interceptor at
interceptorIChannelInterceptorthe interceptor to add
DoSendInternal(IMessage, CancellationToken)
protected override bool DoSendInternal(IMessage message, CancellationToken cancellationToken)
Parameters
messageIMessagecancellationTokenCancellationToken
Returns
SetInterceptors(List<IChannelInterceptor>)
Set the list of channel interceptors
public override void SetInterceptors(List<IChannelInterceptor> interceptors)
Parameters
interceptorsList<IChannelInterceptor>the interceptors to use