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

Id string

Stable id within the protocol, e.g. produce.

Label string

What the form shows, e.g. Produce.

MethodType string

How the call runs: Unary (invoke), ServerStreaming (stream), ClientStreaming or Duplex (channel). See MethodTypes.

Fields

MethodTypes

The method types a call kind may name.

public static readonly IReadOnlyList<string> MethodTypes

Field Value

IReadOnlyList<string>

Properties

BodyExample

An example payload for the body editor, in the protocol's own format.

public string? BodyExample { get; init; }

Property Value

string

Description

One sentence on what the call does.

public string? Description { get; init; }

Property Value

string

Id

Stable id within the protocol, e.g. produce.

public string Id { get; init; }

Property Value

string

Label

What the form shows, e.g. Produce.

public string Label { get; init; }

Property Value

string

Method

The call's method, as a template like Service.

public string Method { get; init; }

Property Value

string

MethodType

How the call runs: Unary (invoke), ServerStreaming (stream), ClientStreaming or Duplex (channel). See MethodTypes.

public string MethodType { get; init; }

Property Value

string

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

string

Methods

Deconstruct(out string, out string, out string)

public void Deconstruct(out string Id, out string Label, out string MethodType)

Parameters

Id string
Label string
MethodType string

Equals(BowireManualCallKind?)

public bool Equals(BowireManualCallKind? other)

Parameters

other BowireManualCallKind

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BowireManualCallKind?, BowireManualCallKind?)

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

Parameters

left BowireManualCallKind
right BowireManualCallKind

Returns

bool

operator !=(BowireManualCallKind?, BowireManualCallKind?)

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

Parameters

left BowireManualCallKind
right BowireManualCallKind

Returns

bool