Class ConsumerEndpointConfiguration
- Namespace
- Silverback.Messaging.Configuration
- Assembly
- Silverback.Integration.dll
The consumer configuration.
public abstract record ConsumerEndpointConfiguration : EndpointConfiguration, IEquatable<EndpointConfiguration>, IEquatable<ConsumerEndpointConfiguration>
- Inheritance
-
ConsumerEndpointConfiguration
- Implements
- Derived
- Inherited Members
Constructors
ConsumerEndpointConfiguration()
protected ConsumerEndpointConfiguration()
ConsumerEndpointConfiguration(ConsumerEndpointConfiguration)
protected ConsumerEndpointConfiguration(ConsumerEndpointConfiguration original)
Parameters
originalConsumerEndpointConfiguration
Properties
Batch
Gets the batch settings. Can be used to enable and setup batch processing.
The default is null, which means that batch processing is disabled.
public BatchSettings? Batch { get; init; }
Property Value
Deserializer
Gets the IMessageDeserializer to be used to deserialize the consumed messages. The default is the JsonMessageDeserializer<TMessage>.
public IMessageDeserializer Deserializer { get; init; }
Property Value
Encryption
Gets the encryption settings to be used to decrypt the encrypted messages. The default is null.
public IDecryptionSettings? Encryption { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
ErrorPolicy
Gets the error policy to be applied when an exception occurs during the processing of the consumed messages. The default is the StopConsumerErrorPolicy.
public IErrorPolicy ErrorPolicy { get; init; }
Property Value
Sequence
Gets the sequence settings. A sequence is a set of related messages, like the chunks belonging to the same message or the messages in a dataset.
public SequenceSettings Sequence { get; init; }
Property Value
ThrowIfUnhandled
Gets a value indicating whether an exception must be thrown if no subscriber is handling the
received message. The default is true.
public bool ThrowIfUnhandled { get; init; }
Property Value
Methods
Equals(ConsumerEndpointConfiguration?)
public virtual bool Equals(ConsumerEndpointConfiguration? other)
Parameters
Returns
Equals(EndpointConfiguration?)
public override sealed bool Equals(EndpointConfiguration? other)
Parameters
otherEndpointConfiguration
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 ==(ConsumerEndpointConfiguration?, ConsumerEndpointConfiguration?)
public static bool operator ==(ConsumerEndpointConfiguration? left, ConsumerEndpointConfiguration? right)
Parameters
Returns
operator !=(ConsumerEndpointConfiguration?, ConsumerEndpointConfiguration?)
public static bool operator !=(ConsumerEndpointConfiguration? left, ConsumerEndpointConfiguration? right)