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
ContractTypeTypeThe contract type.
ProtocolProtocolKeyThe protocol registration key.
TimeoutTimeSpanThe maximum time allowed for the operation.
MaxRetryAttemptsintThe 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
contractTypeTypeThe contract type.
transportNamestringThe transport name.
timeoutTimeSpanThe maximum time allowed for the operation.
maxRetryAttemptsintThe max retry attempts.
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
MaxRetryAttempts
The max retry attempts.
public int MaxRetryAttempts { get; init; }
Property Value
Protocol
The protocol registration key.
public ProtocolKey Protocol { get; init; }
Property Value
Timeout
The maximum time allowed for the operation.
public TimeSpan Timeout { get; init; }
Property Value
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
ContractTypeTypeProtocolProtocolKeyTimeoutTimeSpanMaxRetryAttemptsint
Equals(ClientRegistration?)
public bool Equals(ClientRegistration? other)
Parameters
otherClientRegistration
Returns
Equals(ContractRegistration?)
public override sealed bool Equals(ContractRegistration? other)
Parameters
otherContractRegistration
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
Operators
operator ==(ClientRegistration?, ClientRegistration?)
public static bool operator ==(ClientRegistration? left, ClientRegistration? right)
Parameters
leftClientRegistrationrightClientRegistration
Returns
operator !=(ClientRegistration?, ClientRegistration?)
public static bool operator !=(ClientRegistration? left, ClientRegistration? right)
Parameters
leftClientRegistrationrightClientRegistration