Table of Contents

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

original Endpoint

Endpoint(string, EndpointConfiguration)

Initializes a new instance of the Endpoint class.

protected Endpoint(string rawName, EndpointConfiguration configuration)

Parameters

rawName string

The endpoint name.

configuration EndpointConfiguration

The endpoint configuration.

Properties

Configuration

Gets the endpoint configuration.

public EndpointConfiguration Configuration { get; }

Property Value

EndpointConfiguration

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

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

RawName

Gets the endpoint name (e.g. the topic name).

public string RawName { get; }

Property Value

string

Methods

Equals(Endpoint?)

public virtual bool Equals(Endpoint? other)

Parameters

other Endpoint

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Endpoint?, Endpoint?)

public static bool operator ==(Endpoint? left, Endpoint? right)

Parameters

left Endpoint
right Endpoint

Returns

bool

operator !=(Endpoint?, Endpoint?)

public static bool operator !=(Endpoint? left, Endpoint? right)

Parameters

left Endpoint
right Endpoint

Returns

bool