Table of Contents

Method SendNotificationAsync

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

SendNotificationAsync(string, object, CancellationToken)

Sends a JSON-RPC notification (fire-and-forget, no response expected).

public Task SendNotificationAsync(string method, object parameters, CancellationToken cancellationToken = default)

Parameters

method string

The notification method name (e.g., "notifications/initialized").

parameters object

The notification parameters, or null if none.

cancellationToken CancellationToken

A token to cancel the send operation.

Returns

Task

A task representing the asynchronous send operation.

Exceptions

McpTransportException

Thrown on transport-level failures.

InvalidOperationException

Thrown when the transport is not connected.