Class MessageSendPipeSpecification<TMessage>
- Namespace
- MassTransit.Configuration
- Assembly
- MassTransit.Abstractions.dll
public class MessageSendPipeSpecification<TMessage> : IMessageSendPipeSpecification<TMessage>, IPipeConfigurator<SendContext<TMessage>>, ISpecificationPipeSpecification<SendContext<TMessage>>, IMessageSendPipeSpecification, ISpecification, IPipeConfigurator<SendContext> where TMessage : class
Type Parameters
TMessage
- Inheritance
-
MessageSendPipeSpecification<TMessage>
- Implements
-
IMessageSendPipeSpecification<TMessage>IPipeConfigurator<SendContext<TMessage>>ISpecificationPipeSpecification<SendContext<TMessage>>
- Inherited Members
- Extension Methods
Constructors
MessageSendPipeSpecification()
public MessageSendPipeSpecification()
Methods
AddImplementedMessageSpecification<T>(ISpecificationPipeSpecification<SendContext<T>>)
public void AddImplementedMessageSpecification<T>(ISpecificationPipeSpecification<SendContext<T>> implementedSpecification) where T : class
Parameters
implementedSpecification
ISpecificationPipeSpecification<SendContext<T>>
Type Parameters
T
AddParentMessageSpecification(ISpecificationPipeSpecification<SendContext<TMessage>>)
public void AddParentMessageSpecification(ISpecificationPipeSpecification<SendContext<TMessage>> parentSpecification)
Parameters
parentSpecification
ISpecificationPipeSpecification<SendContext<TMessage>>
AddPipeSpecification(IPipeSpecification<SendContext<TMessage>>)
Adds a pipe specification to the pipe configurator at the end of the chain
public void AddPipeSpecification(IPipeSpecification<SendContext<TMessage>> specification)
Parameters
specification
IPipeSpecification<SendContext<TMessage>>The pipe specification to add
AddPipeSpecification(IPipeSpecification<SendContext>)
Adds a pipe specification to the pipe configurator at the end of the chain
public void AddPipeSpecification(IPipeSpecification<SendContext> specification)
Parameters
specification
IPipeSpecification<SendContext>The pipe specification to add
Apply(ISpecificationPipeBuilder<SendContext<TMessage>>)
public void Apply(ISpecificationPipeBuilder<SendContext<TMessage>> builder)
Parameters
builder
ISpecificationPipeBuilder<SendContext<TMessage>>
BuildMessagePipe()
Build the pipe for the specification
public IPipe<SendContext<TMessage>> BuildMessagePipe()
Returns
- IPipe<SendContext<TMessage>>
Validate()
Validate the specification, ensuring that a successful build will occur.
public IEnumerable<ValidationResult> Validate()