Class EndpointConfiguration
- Namespace
- Silverback.Messaging.Configuration
- Assembly
- Silverback.Integration.dll
The base class for ProducerEndpointConfiguration and ConsumerEndpointConfiguration.
public abstract record EndpointConfiguration : IEquatable<EndpointConfiguration>
- Inheritance
-
EndpointConfiguration
- Implements
- Derived
- Inherited Members
Constructors
EndpointConfiguration()
protected EndpointConfiguration()
EndpointConfiguration(EndpointConfiguration)
protected EndpointConfiguration(EndpointConfiguration original)
Parameters
originalEndpointConfiguration
Properties
DisplayName
Gets the name to be displayed in the human-targeted output (e.g. logs, health checks result, etc.).
public virtual string DisplayName { get; }
Property Value
Remarks
The DisplayName is built joining the optional FriendlyName with the RawName.
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
FriendlyName
Gets an optional friendly name to be used to identify the endpoint. This name can be used to filter or retrieve the endpoints and will also be included in the DisplayName, to be shown in the human-targeted output (e.g. logs, health checks result, etc.).
public virtual string? FriendlyName { get; init; }
Property Value
Remarks
The DisplayName is built joining the optional FriendlyName with the RawName.
MessageValidationMode
Gets the message validation mode. This option can be used to specify if the messages have to be validated and whether an exception must be thrown if the message is not valid. The default is LogWarning.
public virtual MessageValidationMode MessageValidationMode { get; init; }
Property Value
RawName
Gets the raw endpoint name. This can be either the topic name for a static registration, the pattern used to create the actual endpoint name or simply a placeholder.
public virtual string RawName { get; protected init; }
Property Value
Remarks
The DisplayName is built joining the optional FriendlyName with the RawName.
Methods
Equals(EndpointConfiguration?)
public virtual 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 virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Validate()
Validates the endpoint configuration and throws an BrokerConfigurationException if not valid.
public void Validate()
ValidateCore()
Validates the endpoint configuration and throws an BrokerConfigurationException if not valid.
protected virtual void ValidateCore()
Operators
operator ==(EndpointConfiguration?, EndpointConfiguration?)
public static bool operator ==(EndpointConfiguration? left, EndpointConfiguration? right)
Parameters
leftEndpointConfigurationrightEndpointConfiguration
Returns
operator !=(EndpointConfiguration?, EndpointConfiguration?)
public static bool operator !=(EndpointConfiguration? left, EndpointConfiguration? right)
Parameters
leftEndpointConfigurationrightEndpointConfiguration