Interface IChannelInterceptorAware
- Namespace
- Steeltoe.Integration.Channel
- Assembly
- Steeltoe.Integration.Abstractions.dll
A marker interface providing the ability to configure ChannelInterceptors on MessageChannel implementations.
public interface IChannelInterceptorAware
Properties
ChannelInterceptors
Gets or sets the channel interceptors
List<IChannelInterceptor> ChannelInterceptors { get; set; }
Property Value
Methods
AddInterceptor(IChannelInterceptor)
Add a interceptor to the channel
void AddInterceptor(IChannelInterceptor interceptor)
Parameters
interceptor
IChannelInterceptorthe interceptor
AddInterceptor(int, IChannelInterceptor)
Add an interceptor to the channel at the specified index
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
bool RemoveInterceptor(IChannelInterceptor interceptor)
Parameters
interceptor
IChannelInterceptorthe interceptor
Returns
- bool
succss or failure
RemoveInterceptor(int)
Remove an interceptor at the specified index
IChannelInterceptor RemoveInterceptor(int index)
Parameters
index
intthe index
Returns
- IChannelInterceptor
removed interceptor