Table of Contents

Interface IInterceptableChannel

Namespace
Steeltoe.Messaging.Support
Assembly
Steeltoe.Messaging.Abstractions.dll

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 IChannelInterceptor

the interceptor to add

AddInterceptor(int, IChannelInterceptor)

Add an interceptor at the location specified by the index

void AddInterceptor(int index, IChannelInterceptor interceptor)

Parameters

index int

the index to add the interceptor at

interceptor IChannelInterceptor

the 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 IChannelInterceptor

the interceptor to remove

Returns

bool

true if successful

RemoveInterceptor(int)

Remove the interceptor at the given index.

IChannelInterceptor RemoveInterceptor(int index)

Parameters

index int

the 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