Class BowireManualCallKind
- Namespace
- Kuestenlogik.Bowire
- Assembly
- Kuestenlogik.Bowire.dll
One kind of call a protocol offers — Kafka's produce and consume, SignalR's invoke, stream and channel.
public sealed record BowireManualCallKind : IEquatable<BowireManualCallKind>
- Inheritance
-
BowireManualCallKind
- Implements
- Inherited Members
Constructors
BowireManualCallKind(string, string, string)
One kind of call a protocol offers — Kafka's produce and consume, SignalR's invoke, stream and channel.
public BowireManualCallKind(string Id, string Label, string MethodType)
Parameters
IdstringStable id within the protocol, e.g.
produce.LabelstringWhat the form shows, e.g.
Produce.MethodTypestringHow the call runs:
Unary(invoke),ServerStreaming(stream),ClientStreamingorDuplex(channel). See MethodTypes.
Fields
MethodTypes
The method types a call kind may name.
public static readonly IReadOnlyList<string> MethodTypes
Field Value
Properties
BodyExample
An example payload for the body editor, in the protocol's own format.
public string? BodyExample { get; init; }
Property Value
Description
One sentence on what the call does.
public string? Description { get; init; }
Property Value
Id
Stable id within the protocol, e.g. produce.
public string Id { get; init; }
Property Value
Label
What the form shows, e.g. Produce.
public string Label { get; init; }
Property Value
Method
The call's method, as a template like Service.
public string Method { get; init; }
Property Value
MethodType
How the call runs: Unary (invoke), ServerStreaming (stream),
ClientStreaming or Duplex (channel). See MethodTypes.
public string MethodType { get; init; }
Property Value
Service
The call's service, as a template: {key} stands for the
value of the field with that key. Empty when the protocol ignores it.
public string Service { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out string)
public void Deconstruct(out string Id, out string Label, out string MethodType)
Parameters
Equals(BowireManualCallKind?)
public bool Equals(BowireManualCallKind? other)
Parameters
otherBowireManualCallKind
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BowireManualCallKind?, BowireManualCallKind?)
public static bool operator ==(BowireManualCallKind? left, BowireManualCallKind? right)
Parameters
leftBowireManualCallKindrightBowireManualCallKind
Returns
operator !=(BowireManualCallKind?, BowireManualCallKind?)
public static bool operator !=(BowireManualCallKind? left, BowireManualCallKind? right)
Parameters
leftBowireManualCallKindrightBowireManualCallKind