Interface IMessageSendTopologyConfigurator<TMessage>
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
Configures the sending of a message type, allowing filters to be applied on send.
public interface IMessageSendTopologyConfigurator<TMessage> : IMessageSendTopologyConfigurator, ISpecification, IMessageSendTopology<TMessage> where TMessage : class
Type Parameters
TMessage
- Inherited Members
- Extension Methods
Methods
Add(IMessageSendTopology<TMessage>)
void Add(IMessageSendTopology<TMessage> sendTopology)
Parameters
sendTopology
IMessageSendTopology<TMessage>
AddDelegate(IMessageSendTopology<TMessage>)
Adds a delegated configuration to the send topology, which is called before any topologies in this configuration.
void AddDelegate(IMessageSendTopology<TMessage> configuration)
Parameters
configuration
IMessageSendTopology<TMessage>
AddOrUpdateConvention<TConvention>(Func<TConvention>, Func<TConvention, TConvention>)
Returns the first convention that matches the interface type specified, to allow it to be customized and or replaced.
void AddOrUpdateConvention<TConvention>(Func<TConvention> add, Func<TConvention, TConvention> update) where TConvention : class, IMessageSendTopologyConvention<TMessage>
Parameters
add
Func<TConvention>Called if the convention does not already exist
update
Func<TConvention, TConvention>Called if the convention already exists
Type Parameters
TConvention
TryAddConvention(IMessageSendTopologyConvention<TMessage>)
Adds a convention to the message send topology configuration, which can be modified
bool TryAddConvention(IMessageSendTopologyConvention<TMessage> convention)
Parameters
convention
IMessageSendTopologyConvention<TMessage>
Returns
TryGetConvention<TConvention>(out TConvention?)
Returns the convention, if found
bool TryGetConvention<TConvention>(out TConvention? convention) where TConvention : class, IMessageSendTopologyConvention<TMessage>
Parameters
convention
TConvention
Returns
Type Parameters
TConvention
UpdateConvention<TConvention>(Func<TConvention, TConvention>)
Update a convention if available, otherwise, throw an exception
void UpdateConvention<TConvention>(Func<TConvention, TConvention> update) where TConvention : class, IMessageSendTopologyConvention<TMessage>
Parameters
update
Func<TConvention, TConvention>Called if the convention already exists
Type Parameters
TConvention