Interface IInterceptableChannel
A MessageChannel that maintains a list of ChannelInterceptors and allows interception of message sending.
public interface IInterceptableChannel
Methods
AddInterceptor(IChannelInterceptor)
Add an interceptor to the list
void AddInterceptor(IChannelInterceptor interceptor)
Parameters
interceptor
IChannelInterceptorthe interceptor to add
AddInterceptor(int, IChannelInterceptor)
Add an interceptor at the location specified by the index
void AddInterceptor(int index, IChannelInterceptor interceptor)
Parameters
index
intthe index to add the interceptor at
interceptor
IChannelInterceptorthe interceptor to add
GetInterceptors()
Get the interceptors for the channel
List<IChannelInterceptor> GetInterceptors()
Returns
- List<IChannelInterceptor>
the list of interceptors
RemoveInterceptor(IChannelInterceptor)
Remove the specified interceptor
bool RemoveInterceptor(IChannelInterceptor interceptor)
Parameters
interceptor
IChannelInterceptorthe interceptor to remove
Returns
- bool
true if successful
RemoveInterceptor(int)
Remove the interceptor at the given index.
IChannelInterceptor RemoveInterceptor(int index)
Parameters
index
intthe index to use
Returns
- IChannelInterceptor
the interceptor removed
SetInterceptors(List<IChannelInterceptor>)
Set the list of channel interceptors
void SetInterceptors(List<IChannelInterceptor> interceptors)
Parameters
interceptors
List<IChannelInterceptor>the interceptors to use