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
ServerUrlstringResolved
servers[]entry the channel binds to.ChannelAddressstringChannel address from
channels.<name>.address.OperationActionstring"send"or"receive"from the operation block.BindingFieldsIReadOnlyDictionary<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
ChannelAddress
Channel address from channels.<name>.address.
public string ChannelAddress { get; init; }
Property Value
OperationAction
"send" or "receive" from the operation block.
public string OperationAction { get; init; }
Property Value
ServerUrl
Resolved servers[] entry the channel binds to.
public string ServerUrl { get; init; }
Property Value
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
ServerUrlstringChannelAddressstringOperationActionstringBindingFieldsIReadOnlyDictionary<string, string>
Equals(AsyncApiChannelContext?)
public bool Equals(AsyncApiChannelContext? other)
Parameters
otherAsyncApiChannelContext
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 ==(AsyncApiChannelContext?, AsyncApiChannelContext?)
public static bool operator ==(AsyncApiChannelContext? left, AsyncApiChannelContext? right)
Parameters
leftAsyncApiChannelContextrightAsyncApiChannelContext
Returns
operator !=(AsyncApiChannelContext?, AsyncApiChannelContext?)
public static bool operator !=(AsyncApiChannelContext? left, AsyncApiChannelContext? right)
Parameters
leftAsyncApiChannelContextrightAsyncApiChannelContext