Class ProducerEndpointConfiguration
- Namespace
- Silverback.Messaging.Configuration
- Assembly
- Silverback.Integration.dll
The producer configuration.
public abstract record ProducerEndpointConfiguration : EndpointConfiguration, IEquatable<EndpointConfiguration>, IEquatable<ProducerEndpointConfiguration>
- Inheritance
-
ProducerEndpointConfiguration
- Implements
- Derived
- Inherited Members
Constructors
ProducerEndpointConfiguration()
protected ProducerEndpointConfiguration()
ProducerEndpointConfiguration(ProducerEndpointConfiguration)
protected ProducerEndpointConfiguration(ProducerEndpointConfiguration original)
Parameters
originalProducerEndpointConfiguration
Properties
Chunk
Gets the message chunking settings. This option can be used to split large messages into smaller chunks.
The default is null, which means that chunking is disabled.
public ChunkSettings? Chunk { get; init; }
Property Value
EnableSubscribing
Gets a value indicating whether the produced messages can be subscribed to.
The default is false.
public bool EnableSubscribing { get; init; }
Property Value
Encryption
Gets the encryption settings to be used to encrypt the messages. The default is null, which means that the messages are
being sent in clear-text.
public IEncryptionSettings? Encryption { get; init; }
Property Value
EndpointResolver
Gets the IProducerEndpointResolver to be used to resolve the destination endpoint (e.g. the target topic and partition) for the message being produced.
public IProducerEndpointResolver EndpointResolver { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Filter
Gets the IOutboundMessageFilter to be used to filter out messages that should not be produced.
public IOutboundMessageFilter? Filter { get; init; }
Property Value
MessageEnrichers
Gets the collection of IOutboundMessageEnricher to be used to enrich the outbound message.
public IValueReadOnlyCollection<IOutboundMessageEnricher> MessageEnrichers { get; init; }
Property Value
Serializer
Gets the IMessageSerializer to be used to serialize the messages being produced. The default is the JsonMessageSerializer.
public IMessageSerializer Serializer { get; init; }
Property Value
Strategy
Gets the strategy to be used to produce the messages. The default is the DefaultProduceStrategy.
public IProduceStrategy Strategy { get; init; }
Property Value
Methods
Equals(EndpointConfiguration?)
public override sealed bool Equals(EndpointConfiguration? other)
Parameters
otherEndpointConfiguration
Returns
Equals(ProducerEndpointConfiguration?)
public virtual bool Equals(ProducerEndpointConfiguration? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
ValidateCore()
Validates the endpoint configuration and throws an BrokerConfigurationException if not valid.
protected override void ValidateCore()
Operators
operator ==(ProducerEndpointConfiguration?, ProducerEndpointConfiguration?)
public static bool operator ==(ProducerEndpointConfiguration? left, ProducerEndpointConfiguration? right)
Parameters
Returns
operator !=(ProducerEndpointConfiguration?, ProducerEndpointConfiguration?)
public static bool operator !=(ProducerEndpointConfiguration? left, ProducerEndpointConfiguration? right)