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
ContractTypeTypeThe contract type.
ImplementationTypeTypeThe implementation type.
ProtocolsIReadOnlyList<ProtocolKey>The protocols.
ServerRegistration(Type, Type, string)
Initializes a new instance of the ServerRegistration class.
public ServerRegistration(Type contractType, Type implementationType, string transportName)
Parameters
contractTypeTypeThe contract type.
implementationTypeTypeThe implementation type.
transportNamestringThe transport name.
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
ImplementationType
The implementation type.
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]
public Type ImplementationType { get; init; }
Property Value
Protocols
The protocols.
public IReadOnlyList<ProtocolKey> Protocols { get; init; }
Property Value
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
ContractTypeTypeImplementationTypeTypeProtocolsIReadOnlyList<ProtocolKey>
Equals(ContractRegistration?)
public override sealed bool Equals(ContractRegistration? other)
Parameters
otherContractRegistration
Returns
Equals(ServerRegistration?)
public bool Equals(ServerRegistration? other)
Parameters
otherServerRegistration
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 ==(ServerRegistration?, ServerRegistration?)
public static bool operator ==(ServerRegistration? left, ServerRegistration? right)
Parameters
leftServerRegistrationrightServerRegistration
Returns
operator !=(ServerRegistration?, ServerRegistration?)
public static bool operator !=(ServerRegistration? left, ServerRegistration? right)
Parameters
leftServerRegistrationrightServerRegistration