Skip to content

INexusOperationTokenFormat Methods

Formats and reads Nexus operation tokens, which name an operation of a Nexus service.

Format(string)

abstract
public abstract string Format(string operationId)
Returns the token of the operation operationId.

Parameters

operationIdstring
The operation identifier, which the caller chose with its Nexus-Request-Id.

Returns

A token of characters which are valid in an HTTP header value.

TryParse(string, string?)

abstract
public abstract bool TryParse(string token, out string? operationId)
Reads a token which INexusOperationTokenFormat returned.

Parameters

tokenstring
The token.
operationIdstring?
The operation identifier.

Returns

true when token is a valid token.