Table of Contents

Class ClientRegistration

Namespace
AnyProtocol.Configuration
Assembly
AnyProtocol.dll

Provides the client registration implementation used by AnyProtocol applications.

public sealed record ClientRegistration : ContractRegistration, IEquatable<ContractRegistration>, IEquatable<ClientRegistration>
Inheritance
ClientRegistration
Implements
Inherited Members

Constructors

ClientRegistration(Type, ProtocolKey, TimeSpan, int)

Provides the client registration implementation used by AnyProtocol applications.

public ClientRegistration(Type ContractType, ProtocolKey Protocol, TimeSpan Timeout, int MaxRetryAttempts)

Parameters

ContractType Type

The contract type.

Protocol ProtocolKey

The protocol registration key.

Timeout TimeSpan

The maximum time allowed for the operation.

MaxRetryAttempts int

The max retry attempts.

ClientRegistration(Type, string, TimeSpan, int)

Initializes a new instance of the ClientRegistration class.

public ClientRegistration(Type contractType, string transportName, TimeSpan timeout, int maxRetryAttempts)

Parameters

contractType Type

The contract type.

transportName string

The transport name.

timeout TimeSpan

The maximum time allowed for the operation.

maxRetryAttempts int

The max retry attempts.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

MaxRetryAttempts

The max retry attempts.

public int MaxRetryAttempts { get; init; }

Property Value

int

Protocol

The protocol registration key.

public ProtocolKey Protocol { get; init; }

Property Value

ProtocolKey

Timeout

The maximum time allowed for the operation.

public TimeSpan Timeout { get; init; }

Property Value

TimeSpan

TransportName

Gets the transport name.

public string TransportName { get; }

Property Value

string

The transport name.

Methods

Deconstruct(out Type, out ProtocolKey, out TimeSpan, out int)

public void Deconstruct(out Type ContractType, out ProtocolKey Protocol, out TimeSpan Timeout, out int MaxRetryAttempts)

Parameters

ContractType Type
Protocol ProtocolKey
Timeout TimeSpan
MaxRetryAttempts int

Equals(ClientRegistration?)

public bool Equals(ClientRegistration? other)

Parameters

other ClientRegistration

Returns

bool

Equals(ContractRegistration?)

public override sealed bool Equals(ContractRegistration? other)

Parameters

other ContractRegistration

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 override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ClientRegistration?, ClientRegistration?)

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

Parameters

left ClientRegistration
right ClientRegistration

Returns

bool

operator !=(ClientRegistration?, ClientRegistration?)

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

Parameters

left ClientRegistration
right ClientRegistration

Returns

bool