Container for an exchange name, exchange type and routing key, usable as the target address of a message to be published.
public class PublicationAddress
PublicationAddress
Creates a new instance of the PublicationAddress.
public PublicationAddress(string exchangeType, string exchangeName, string routingKey)
Parameters
exchangeType
string
Exchange type.
exchangeName
string
Exchange name.
routingKey
string
Routing key.
Retrieve the exchange name.
public readonly string ExchangeName
Field Value
Retrieve the exchange type string.
public readonly string ExchangeType
Field Value
Regular expression used to extract the exchange-type, exchange-name and routing-key from a string.
public static readonly Regex PSEUDO_URI_PARSER
Field Value
Retrieve the routing key.
public readonly string RoutingKey
Field Value
Parse a PublicationAddress out of the given string, using the PSEUDO_URI_PARSER regex.
public static PublicationAddress? Parse(string uriLikeString)
Parameters
uriLikeString
string
Reconstruct the "uri" from its constituents.
public override string ToString()
Returns
public static bool TryParse(string? uriLikeString, out PublicationAddress? result)
Parameters
uriLikeString
string
result
PublicationAddress
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4