Interface IInterceptableChannel
A MessageChannel that maintains a list of ChannelInterceptors and allows interception of message sending.
Namespace: Steeltoe.Messaging.Support
Assembly: Steeltoe.Messaging.Abstractions.dll
Syntax
public interface IInterceptableChannel
Methods
| Edit this page View SourceAddInterceptor(IChannelInterceptor)
Add an interceptor to the list
Declaration
void AddInterceptor(IChannelInterceptor interceptor)
Parameters
Type | Name | Description |
---|---|---|
IChannelInterceptor | interceptor | the interceptor to add |
AddInterceptor(Int32, IChannelInterceptor)
Add an interceptor at the location specified by the 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 to add |
GetInterceptors()
Get the interceptors for the channel
Declaration
List<IChannelInterceptor> GetInterceptors()
Returns
Type | Description |
---|---|
List<IChannelInterceptor> | the list of interceptors |
RemoveInterceptor(IChannelInterceptor)
Remove the specified interceptor
Declaration
bool RemoveInterceptor(IChannelInterceptor interceptor)
Parameters
Type | Name | Description |
---|---|---|
IChannelInterceptor | interceptor | the interceptor to remove |
Returns
Type | Description |
---|---|
System.Boolean | true if successful |
RemoveInterceptor(Int32)
Remove the interceptor at the given index.
Declaration
IChannelInterceptor RemoveInterceptor(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | the index to use |
Returns
Type | Description |
---|---|
IChannelInterceptor | the interceptor removed |
SetInterceptors(List<IChannelInterceptor>)
Set the list of channel interceptors
Declaration
void SetInterceptors(List<IChannelInterceptor> interceptors)
Parameters
Type | Name | Description |
---|---|---|
List<IChannelInterceptor> | interceptors | the interceptors to use |