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
valuestringThe value to store.
Returns
- ProtocolKey
The result of the create operation.
Equals(ProtocolKey)
public bool Equals(ProtocolKey other)
Parameters
otherProtocolKey
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
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
leftProtocolKeyrightProtocolKey
Returns
operator !=(ProtocolKey, ProtocolKey)
public static bool operator !=(ProtocolKey left, ProtocolKey right)
Parameters
leftProtocolKeyrightProtocolKey