Table of Contents

Interface IMessageFilterConfigurator

Namespace
MassTransit
Assembly
MassTransit.Abstractions.dll

Configures a message filter, for including and excluding message types

public interface IMessageFilterConfigurator

Methods

Exclude(params Type[])

Exclude the message if it is any of the specified message types

void Exclude(params Type[] messageTypes)

Parameters

messageTypes Type[]

Exclude<T>()

Exclude the message if it is the specified message type

void Exclude<T>() where T : class

Type Parameters

T

The message type

Exclude<T>(Func<T, bool>)

Exclude the message if it is the specified message type and matches the specified filter expression

void Exclude<T>(Func<T, bool> filter) where T : class

Parameters

filter Func<T, bool>

The filter expression

Type Parameters

T

The message type

Include(params Type[])

Include the message if it is any of the specified message types

void Include(params Type[] messageTypes)

Parameters

messageTypes Type[]

Include<T>()

Include the message if it is the specified message type

void Include<T>() where T : class

Type Parameters

T

The message type

Include<T>(Func<T, bool>)

Include the message if it is the specified message type and matches the specified filter expression

void Include<T>(Func<T, bool> filter) where T : class

Parameters

filter Func<T, bool>

The filter expression

Type Parameters

T

The message type