# PlainTextNexusOperationTokenFormat Methods

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

## Format(string) {#format-string-e04bc089}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.plaintextnexusoperationtokenformat/methods/format-string-e04bc089/)

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/Orleans.Durable.Http/NexusProtocol.cs#L35-L36)

```csharp
public 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-8f5cc708}

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

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/Orleans.Durable.Http/NexusProtocol.cs#L42-L44)

```csharp
public 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.
