Table of Contents

Struct ProtocolKey

Namespace
AnyProtocol.Protocol.Abstraction
Assembly
AnyProtocol.Protocol.Abstraction.dll

Identifies a configured protocol instance. Values are normalized so keys are case-insensitive while still allowing custom and multiple protocol instances.

public readonly struct ProtocolKey : IEquatable<ProtocolKey>
Implements
Inherited Members

Properties

Default

Gets the default.

public static ProtocolKey Default { get; }

Property Value

ProtocolKey

The default.

Grpc

Gets the grpc.

public static ProtocolKey Grpc { get; }

Property Value

ProtocolKey

The grpc.

InMemory

Gets the in memory.

public static ProtocolKey InMemory { get; }

Property Value

ProtocolKey

The in memory.

Kafka

Gets the kafka.

public static ProtocolKey Kafka { get; }

Property Value

ProtocolKey

The kafka.

Mcp

Gets the mcp.

public static ProtocolKey Mcp { get; }

Property Value

ProtocolKey

The mcp.

RabbitMq

Gets the rabbit mq.

public static ProtocolKey RabbitMq { get; }

Property Value

ProtocolKey

The rabbit mq.

Rest

Gets the rest.

public static ProtocolKey Rest { get; }

Property Value

ProtocolKey

The rest.

Value

Gets the value represented by this member.

public string Value { get; }

Property Value

string

The value.

ZeroMq

Gets the zero mq.

public static ProtocolKey ZeroMq { get; }

Property Value

ProtocolKey

The zero mq.

Methods

Create(string)

Creates .

public static ProtocolKey Create(string value)

Parameters

value string

The value to store.

Returns

ProtocolKey

The result of the create operation.

Equals(ProtocolKey)

public bool Equals(ProtocolKey other)

Parameters

other ProtocolKey

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

Performs the to string operation.

public override string ToString()

Returns

string

The result of the to string operation.

Operators

operator ==(ProtocolKey, ProtocolKey)

public static bool operator ==(ProtocolKey left, ProtocolKey right)

Parameters

left ProtocolKey
right ProtocolKey

Returns

bool

operator !=(ProtocolKey, ProtocolKey)

public static bool operator !=(ProtocolKey left, ProtocolKey right)

Parameters

left ProtocolKey
right ProtocolKey

Returns

bool