Table of Contents
API reference

Method RemoveAsync

Namespace
DisCatSharp.Hosting.AspNetCore.Ingress
Assembly
DisCatSharp.Hosting.AspNetCore.dll

RemoveAsync(string, CancellationToken)

Removes a pending state entry when present.

public ValueTask<bool> RemoveAsync(string key, CancellationToken cancellationToken = default)

Parameters

key string

The pending state key.

cancellationToken CancellationToken

A token used to cancel the operation.

Returns

ValueTask<bool>

true when an entry was removed.