Class TaskSchedulerSubscribableChannel
public class TaskSchedulerSubscribableChannel : AbstractSubscribableChannel, IInterceptableChannel, ISubscribableChannel, IMessageChannel, IServiceNameAware
- Inheritance
-
TaskSchedulerSubscribableChannel
- Implements
- Inherited Members
Constructors
TaskSchedulerSubscribableChannel(ILogger)
public TaskSchedulerSubscribableChannel(ILogger logger = null)
Parameters
logger
ILogger
TaskSchedulerSubscribableChannel(TaskScheduler, ILogger)
public TaskSchedulerSubscribableChannel(TaskScheduler scheduler, ILogger logger = null)
Parameters
scheduler
TaskSchedulerlogger
ILogger
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
interceptor
IChannelInterceptorthe 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
index
intthe index to add the interceptor at
interceptor
IChannelInterceptorthe interceptor to add
DoSendInternal(IMessage, CancellationToken)
protected override bool DoSendInternal(IMessage message, CancellationToken cancellationToken)
Parameters
message
IMessagecancellationToken
CancellationToken
Returns
SetInterceptors(List<IChannelInterceptor>)
Set the list of channel interceptors
public override void SetInterceptors(List<IChannelInterceptor> interceptors)
Parameters
interceptors
List<IChannelInterceptor>the interceptors to use