Table of Contents

Class ServerRegistration

Namespace
AnyProtocol.Configuration
Assembly
AnyProtocol.dll

Provides the server registration implementation used by AnyProtocol applications.

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

Constructors

ServerRegistration(Type, Type, IReadOnlyList<ProtocolKey>)

Provides the server registration implementation used by AnyProtocol applications.

public ServerRegistration(Type ContractType, Type ImplementationType, IReadOnlyList<ProtocolKey> Protocols)

Parameters

ContractType Type

The contract type.

ImplementationType Type

The implementation type.

Protocols IReadOnlyList<ProtocolKey>

The protocols.

ServerRegistration(Type, Type, string)

Initializes a new instance of the ServerRegistration class.

public ServerRegistration(Type contractType, Type implementationType, string transportName)

Parameters

contractType Type

The contract type.

implementationType Type

The implementation type.

transportName string

The transport name.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

ImplementationType

The implementation type.

[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]
public Type ImplementationType { get; init; }

Property Value

Type

Protocols

The protocols.

public IReadOnlyList<ProtocolKey> Protocols { get; init; }

Property Value

IReadOnlyList<ProtocolKey>

TransportName

Gets the transport name.

public string TransportName { get; }

Property Value

string

The transport name.

Methods

Deconstruct(out Type, out Type, out IReadOnlyList<ProtocolKey>)

public void Deconstruct(out Type ContractType, out Type ImplementationType, out IReadOnlyList<ProtocolKey> Protocols)

Parameters

ContractType Type
ImplementationType Type
Protocols IReadOnlyList<ProtocolKey>

Equals(ContractRegistration?)

public override sealed bool Equals(ContractRegistration? other)

Parameters

other ContractRegistration

Returns

bool

Equals(ServerRegistration?)

public bool Equals(ServerRegistration? other)

Parameters

other ServerRegistration

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 ==(ServerRegistration?, ServerRegistration?)

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

Parameters

left ServerRegistration
right ServerRegistration

Returns

bool

operator !=(ServerRegistration?, ServerRegistration?)

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

Parameters

left ServerRegistration
right ServerRegistration

Returns

bool