Table of Contents

Class ContractRegistration

Namespace
AnyProtocol.Configuration
Assembly
AnyProtocol.dll

Provides the contract registration implementation used by AnyProtocol applications.

public abstract record ContractRegistration : IEquatable<ContractRegistration>
Inheritance
ContractRegistration
Implements
Derived
Inherited Members

Constructors

ContractRegistration(ContractRegistration)

protected ContractRegistration(ContractRegistration original)

Parameters

original ContractRegistration

ContractRegistration(Type)

Provides the contract registration implementation used by AnyProtocol applications.

protected ContractRegistration(Type ContractType)

Parameters

ContractType Type

The contract type.

Properties

ConfigurationKey

Gets or initializes the configuration key.

public string ConfigurationKey { get; init; }

Property Value

string

The configuration key.

ContractType

The contract type.

[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods|DynamicallyAccessedMemberTypes.PublicProperties|DynamicallyAccessedMemberTypes.Interfaces)]
public Type ContractType { get; init; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

RequiredOrdering

Gets or initializes the required ordering.

public TransportOrdering RequiredOrdering { get; init; }

Property Value

TransportOrdering

The required ordering.

Methods

Deconstruct(out Type)

public void Deconstruct(out Type ContractType)

Parameters

ContractType Type

Equals(ContractRegistration?)

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

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ContractRegistration?, ContractRegistration?)

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

Parameters

left ContractRegistration
right ContractRegistration

Returns

bool

operator !=(ContractRegistration?, ContractRegistration?)

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

Parameters

left ContractRegistration
right ContractRegistration

Returns

bool