Class RabbitProducer
Inheritance
System.Object
RabbitProducer
Implements
System.IDisposable
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()
Assembly: Silverback.Integration.RabbitMQ.dll
Syntax
public sealed class RabbitProducer : Producer<RabbitBroker, RabbitProducerEndpoint>, IProducer, IDisposable
Constructors
|
Improve this doc
View source
RabbitProducer(RabbitBroker, RabbitProducerEndpoint, IBrokerBehaviorsProvider<IProducerBehavior>, IServiceProvider, IOutboundLogger<Producer>)
Declaration
public RabbitProducer(RabbitBroker broker, RabbitProducerEndpoint endpoint, IBrokerBehaviorsProvider<IProducerBehavior> behaviorsProvider, IServiceProvider serviceProvider, IOutboundLogger<Producer> logger)
Parameters
Methods
|
Improve this doc
View source
Dispose()
Declaration
|
Improve this doc
View source
Declaration
protected override IBrokerMessageIdentifier ProduceCore(object message, byte[] messageBytes, IReadOnlyCollection<MessageHeader> headers, string actualEndpointName)
Parameters
Type |
Name |
Description |
System.Object |
message |
|
System.Byte[] |
messageBytes |
|
System.Collections.Generic.IReadOnlyCollection<MessageHeader> |
headers |
|
System.String |
actualEndpointName |
|
Returns
Overrides
|
Improve this doc
View source
Declaration
protected override void ProduceCore(object message, byte[] messageBytes, IReadOnlyCollection<MessageHeader> headers, string actualEndpointName, Action<IBrokerMessageIdentifier> onSuccess, Action<Exception> onError)
Parameters
Type |
Name |
Description |
System.Object |
message |
|
System.Byte[] |
messageBytes |
|
System.Collections.Generic.IReadOnlyCollection<MessageHeader> |
headers |
|
System.String |
actualEndpointName |
|
System.Action<IBrokerMessageIdentifier> |
onSuccess |
|
System.Action<System.Exception> |
onError |
|
Overrides
|
Improve this doc
View source
Declaration
protected override IBrokerMessageIdentifier ProduceCore(object message, Stream messageStream, IReadOnlyCollection<MessageHeader> headers, string actualEndpointName)
Parameters
Type |
Name |
Description |
System.Object |
message |
|
System.IO.Stream |
messageStream |
|
System.Collections.Generic.IReadOnlyCollection<MessageHeader> |
headers |
|
System.String |
actualEndpointName |
|
Returns
Overrides
|
Improve this doc
View source
Declaration
protected override void ProduceCore(object message, Stream messageStream, IReadOnlyCollection<MessageHeader> headers, string actualEndpointName, Action<IBrokerMessageIdentifier> onSuccess, Action<Exception> onError)
Parameters
Type |
Name |
Description |
System.Object |
message |
|
System.IO.Stream |
messageStream |
|
System.Collections.Generic.IReadOnlyCollection<MessageHeader> |
headers |
|
System.String |
actualEndpointName |
|
System.Action<IBrokerMessageIdentifier> |
onSuccess |
|
System.Action<System.Exception> |
onError |
|
Overrides
|
Improve this doc
View source
Declaration
protected override async Task<IBrokerMessageIdentifier> ProduceCoreAsync(object message, byte[] messageBytes, IReadOnlyCollection<MessageHeader> headers, string actualEndpointName)
Parameters
Type |
Name |
Description |
System.Object |
message |
|
System.Byte[] |
messageBytes |
|
System.Collections.Generic.IReadOnlyCollection<MessageHeader> |
headers |
|
System.String |
actualEndpointName |
|
Returns
Overrides
|
Improve this doc
View source
Declaration
protected override async Task ProduceCoreAsync(object message, byte[] messageBytes, IReadOnlyCollection<MessageHeader> headers, string actualEndpointName, Action<IBrokerMessageIdentifier> onSuccess, Action<Exception> onError)
Parameters
Type |
Name |
Description |
System.Object |
message |
|
System.Byte[] |
messageBytes |
|
System.Collections.Generic.IReadOnlyCollection<MessageHeader> |
headers |
|
System.String |
actualEndpointName |
|
System.Action<IBrokerMessageIdentifier> |
onSuccess |
|
System.Action<System.Exception> |
onError |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
|
Improve this doc
View source
Declaration
protected override async Task<IBrokerMessageIdentifier> ProduceCoreAsync(object message, Stream messageStream, IReadOnlyCollection<MessageHeader> headers, string actualEndpointName)
Parameters
Type |
Name |
Description |
System.Object |
message |
|
System.IO.Stream |
messageStream |
|
System.Collections.Generic.IReadOnlyCollection<MessageHeader> |
headers |
|
System.String |
actualEndpointName |
|
Returns
Overrides
|
Improve this doc
View source
Declaration
protected override async Task ProduceCoreAsync(object message, Stream messageStream, IReadOnlyCollection<MessageHeader> headers, string actualEndpointName, Action<IBrokerMessageIdentifier> onSuccess, Action<Exception> onError)
Parameters
Type |
Name |
Description |
System.Object |
message |
|
System.IO.Stream |
messageStream |
|
System.Collections.Generic.IReadOnlyCollection<MessageHeader> |
headers |
|
System.String |
actualEndpointName |
|
System.Action<IBrokerMessageIdentifier> |
onSuccess |
|
System.Action<System.Exception> |
onError |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
Implements
System.IDisposable