Class AbstractTaskSchedulerChannel
- Namespace
- Steeltoe.Integration.Channel
- Assembly
- Steeltoe.Integration.IntegrationBase.dll
public abstract class AbstractTaskSchedulerChannel : AbstractSubscribableChannel, ISubscribableChannel, IMessageChannel, IServiceNameAware, ITaskSchedulerChannelInterceptorAware, IChannelInterceptorAware
- Inheritance
-
AbstractTaskSchedulerChannel
- Implements
- Derived
- Inherited Members
Constructors
AbstractTaskSchedulerChannel(IApplicationContext, IMessageDispatcher, ILogger)
protected AbstractTaskSchedulerChannel(IApplicationContext context, IMessageDispatcher dispatcher, ILogger logger = null)
Parameters
context
IApplicationContextdispatcher
IMessageDispatcherlogger
ILogger
AbstractTaskSchedulerChannel(IApplicationContext, IMessageDispatcher, TaskScheduler, ILogger)
protected AbstractTaskSchedulerChannel(IApplicationContext context, IMessageDispatcher dispatcher, TaskScheduler executor, ILogger logger = null)
Parameters
context
IApplicationContextdispatcher
IMessageDispatcherexecutor
TaskSchedulerlogger
ILogger
AbstractTaskSchedulerChannel(IApplicationContext, IMessageDispatcher, TaskScheduler, string, ILogger)
protected AbstractTaskSchedulerChannel(IApplicationContext context, IMessageDispatcher dispatcher, TaskScheduler executor, string name, ILogger logger = null)
Parameters
context
IApplicationContextdispatcher
IMessageDispatcherexecutor
TaskSchedulername
stringlogger
ILogger
Fields
_executor
protected TaskScheduler _executor
Field Value
_taskSchedulerInterceptorsSize
protected int _taskSchedulerInterceptorsSize
Field Value
Properties
ChannelInterceptors
Gets or sets the channel interceptors
public override List<IChannelInterceptor> ChannelInterceptors { get; set; }
Property Value
HasTaskSchedulerInterceptors
Gets a value indicating whether there are any task scheduler interceptors on the channel
public virtual bool HasTaskSchedulerInterceptors { get; }
Property Value
Methods
AddInterceptor(IChannelInterceptor)
Add a interceptor to the channel
public override void AddInterceptor(IChannelInterceptor interceptor)
Parameters
interceptor
IChannelInterceptorthe interceptor
AddInterceptor(int, IChannelInterceptor)
Add an interceptor to the channel at the specified index
public override void AddInterceptor(int index, IChannelInterceptor interceptor)
Parameters
index
intthe index to add the interceptor at
interceptor
IChannelInterceptorthe interceptor
RemoveInterceptor(IChannelInterceptor)
Remove an intercetptor from the channel
public override bool RemoveInterceptor(IChannelInterceptor interceptor)
Parameters
interceptor
IChannelInterceptorthe interceptor
Returns
- bool
succss or failure
RemoveInterceptor(int)
Remove an interceptor at the specified index
public override IChannelInterceptor RemoveInterceptor(int index)
Parameters
index
intthe index
Returns
- IChannelInterceptor
removed interceptor