Interface IChannelInterceptorAware
A marker interface providing the ability to configure ChannelInterceptors on MessageChannel implementations.
Namespace: Steeltoe.Integration.Channel
Assembly: Steeltoe.Integration.Abstractions.dll
Syntax
public interface IChannelInterceptorAware
Properties
| Edit this page View SourceChannelInterceptors
Gets or sets the channel interceptors
Declaration
List<IChannelInterceptor> ChannelInterceptors { get; set; }
Property Value
Type | Description |
---|---|
List<IChannelInterceptor> |
Methods
| Edit this page View SourceAddInterceptor(IChannelInterceptor)
Add a interceptor to the channel
Declaration
void AddInterceptor(IChannelInterceptor interceptor)
Parameters
Type | Name | Description |
---|---|---|
IChannelInterceptor | interceptor | the interceptor |
AddInterceptor(Int32, IChannelInterceptor)
Add an interceptor to the channel at the specified index
Declaration
void AddInterceptor(int index, IChannelInterceptor interceptor)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | the index to add the interceptor at |
IChannelInterceptor | interceptor | the interceptor |
RemoveInterceptor(IChannelInterceptor)
Remove an intercetptor from the channel
Declaration
bool RemoveInterceptor(IChannelInterceptor interceptor)
Parameters
Type | Name | Description |
---|---|---|
IChannelInterceptor | interceptor | the interceptor |
Returns
Type | Description |
---|---|
System.Boolean | succss or failure |
RemoveInterceptor(Int32)
Remove an interceptor at the specified index
Declaration
IChannelInterceptor RemoveInterceptor(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | the index |
Returns
Type | Description |
---|---|
IChannelInterceptor | removed interceptor |