Class ProduceBehavior
Produces the IOutboundEnvelope<TMessage> using the IProduceStrategy configured in the endpoint.
Inheritance
System.Object
ProduceBehavior
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Silverback.Messaging.Outbound.Routing
Assembly: Silverback.Integration.dll
Syntax
public class ProduceBehavior : IBehavior, ISorted
Constructors
| Improve this doc View sourceProduceBehavior(IServiceProvider)
Initializes a new instance of the ProduceBehavior class.
Declaration
public ProduceBehavior(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | serviceProvider | The System.IServiceProvider to be used to build the IProduceStrategyImplementation. |
Properties
| Improve this doc View sourceSortIndex
Gets the sort index.
Declaration
public int SortIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this doc View sourceHandleAsync(Object, MessageHandler)
Process, handles or transforms the messages being published to the internal bus.
Declaration
public async Task<IReadOnlyCollection<object>> HandleAsync(object message, MessageHandler next)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message being published. |
MessageHandler | next | The next behavior in the pipeline. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<System.Object>> | A System.Threading.Tasks.Task<TResult> representing the asynchronous operation. The task result contains the result values (if any). |