Table of Contents

Class ContractMethodDescriptor

Namespace
AnyProtocol.Abstraction
Assembly
AnyProtocol.Abstraction.dll

Describes contract method metadata used at runtime.

public sealed class ContractMethodDescriptor
Inheritance
ContractMethodDescriptor
Inherited Members

Constructors

ContractMethodDescriptor()

public ContractMethodDescriptor()

Properties

Channel

Gets or initializes the channel.

public required string Channel { get; init; }

Property Value

string

The channel.

ContractName

Gets or initializes the contract name.

public required string ContractName { get; init; }

Property Value

string

The contract name.

ContractType

Gets or initializes the contract type.

public required Type ContractType { get; init; }

Property Value

Type

The contract type.

ExpectReply

Gets or initializes a value indicating whether expect reply applies.

public bool ExpectReply { get; init; }

Property Value

bool

true when expect reply applies; otherwise, false.

FaultType

Gets or initializes the fault type.

public Type? FaultType { get; init; }

Property Value

Type

The fault type.

HasCancellationToken

Gets or initializes a value indicating whether has cancellation token applies.

public bool HasCancellationToken { get; init; }

Property Value

bool

true when has cancellation token applies; otherwise, false.

IsIdempotent

Gets or initializes a value indicating whether is idempotent applies.

public bool IsIdempotent { get; init; }

Property Value

bool

true when is idempotent applies; otherwise, false.

Method

Gets or initializes the method.

public required MethodInfo Method { get; init; }

Property Value

MethodInfo

The method.

MethodName

Gets or initializes the method name.

public required string MethodName { get; init; }

Property Value

string

The method name.

Operation

Gets or initializes the operation.

public required ContractOperation Operation { get; init; }

Property Value

ContractOperation

The operation.

PartitionKeyProperty

Gets or initializes the partition key property.

public PropertyInfo? PartitionKeyProperty { get; init; }

Property Value

PropertyInfo

The partition key property.

RequestType

Gets or initializes the request type.

public required Type RequestType { get; init; }

Property Value

Type

The request type.

RequiredPermissions

Gets or initializes the required permissions.

public IReadOnlyList<string> RequiredPermissions { get; init; }

Property Value

IReadOnlyList<string>

The required permissions.

ResponseType

Gets or initializes the response type.

public Type? ResponseType { get; init; }

Property Value

Type

The response type.