Table of Contents

Method ShutdownAsync

Namespace
LMKit.Mcp.Client
Assembly
LM-Kit.NET.dll

ShutdownAsync(CancellationToken)

Gracefully shuts down the client: clears cached state, cancels pending requests, and recreates the owned HttpClient so the instance can be reused later.

public Task ShutdownAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task