Class AsyncApiChannelContext

Namespace
Kuestenlogik.Bowire.AsyncApi
Assembly
Kuestenlogik.Bowire.AsyncApi.dll

Everything a binding resolver needs to translate one AsyncAPI operation into a wire-plugin call. Filled by the AsyncAPI loader; consumed by IAsyncApiBindingResolver implementations.

public sealed record AsyncApiChannelContext : IEquatable<AsyncApiChannelContext>
Inheritance
AsyncApiChannelContext
Implements
Inherited Members

Constructors

AsyncApiChannelContext(string, string, string, IReadOnlyDictionary<string, string>)

Everything a binding resolver needs to translate one AsyncAPI operation into a wire-plugin call. Filled by the AsyncAPI loader; consumed by IAsyncApiBindingResolver implementations.

public AsyncApiChannelContext(string ServerUrl, string ChannelAddress, string OperationAction, IReadOnlyDictionary<string, string> BindingFields)

Parameters

ServerUrl string

Resolved servers[] entry the channel binds to.

ChannelAddress string

Channel address from channels.<name>.address.

OperationAction string

"send" or "receive" from the operation block.

BindingFields IReadOnlyDictionary<string, string>

Raw key/value map of the matching bindings.<id> block.

Properties

BindingFields

Raw key/value map of the matching bindings.<id> block.

public IReadOnlyDictionary<string, string> BindingFields { get; init; }

Property Value

IReadOnlyDictionary<string, string>

ChannelAddress

Channel address from channels.<name>.address.

public string ChannelAddress { get; init; }

Property Value

string

OperationAction

"send" or "receive" from the operation block.

public string OperationAction { get; init; }

Property Value

string

ServerUrl

Resolved servers[] entry the channel binds to.

public string ServerUrl { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out string, out IReadOnlyDictionary<string, string>)

public void Deconstruct(out string ServerUrl, out string ChannelAddress, out string OperationAction, out IReadOnlyDictionary<string, string> BindingFields)

Parameters

ServerUrl string
ChannelAddress string
OperationAction string
BindingFields IReadOnlyDictionary<string, string>

Equals(AsyncApiChannelContext?)

public bool Equals(AsyncApiChannelContext? other)

Parameters

other AsyncApiChannelContext

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 ==(AsyncApiChannelContext?, AsyncApiChannelContext?)

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

Parameters

left AsyncApiChannelContext
right AsyncApiChannelContext

Returns

bool

operator !=(AsyncApiChannelContext?, AsyncApiChannelContext?)

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

Parameters

left AsyncApiChannelContext
right AsyncApiChannelContext

Returns

bool