# INexusOperationTokenFormat Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.inexusoperationtokenformat/)

## Format(string) {#format-string-9c1cd6ab}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.inexusoperationtokenformat/methods/format-string-9c1cd6ab/)

```csharp
public abstract string Format(string operationId)
```

Returns the token of the operation `operationId`.

### Parameters

- `operationId` (`string`): 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?) {#tryparse-string-out-string-nullable-bb6b3f5e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.inexusoperationtokenformat/methods/tryparse-string-out-string-nullable-bb6b3f5e/)

```csharp
public abstract bool TryParse(string token, out string? operationId)
```

Reads a token which [INexusOperationTokenFormat](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.inexusoperationtokenformat/) returned.

### Parameters

- `token` (`string`): The token.
- `operationId` (`string?`): The operation identifier.

### Returns

`true` when `token` is a valid token.
