Class Endpoint
- Namespace
- Silverback.Messaging
- Assembly
- Silverback.Integration.dll
The base class for ProducerEndpoint and ConsumerEndpoint.
public abstract record Endpoint : IEquatable<Endpoint>
- Inheritance
-
Endpoint
- Implements
- Derived
- Inherited Members
Constructors
Endpoint(Endpoint)
protected Endpoint(Endpoint original)
Parameters
originalEndpoint
Endpoint(string, EndpointConfiguration)
Initializes a new instance of the Endpoint class.
protected Endpoint(string rawName, EndpointConfiguration configuration)
Parameters
rawNamestringThe endpoint name.
configurationEndpointConfigurationThe endpoint configuration.
Properties
Configuration
Gets the endpoint configuration.
public EndpointConfiguration Configuration { get; }
Property Value
DisplayName
Gets the name to be displayed in the human-targeted output (e.g. logs, health checks result, etc.).
public string DisplayName { get; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
RawName
Gets the endpoint name (e.g. the topic name).
public string RawName { get; }
Property Value
Methods
Equals(Endpoint?)
public virtual bool Equals(Endpoint? other)
Parameters
otherEndpoint
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
Operators
operator ==(Endpoint?, Endpoint?)
public static bool operator ==(Endpoint? left, Endpoint? right)
Parameters
Returns
operator !=(Endpoint?, Endpoint?)
public static bool operator !=(Endpoint? left, Endpoint? right)