Table of Contents

Delegate MessageHandler

Namespace
VpnHood.Core.Client.VpnServices.Abstractions.Messaging
Assembly
VpnHood.Core.Client.VpnServices.Abstractions.dll

Represents the method that answers a request from the app.

public delegate Task<Memory<byte>> MessageHandler(Memory<byte> request, CancellationToken cancellationToken)

Parameters

request Memory<byte>

The request's bytes.

cancellationToken CancellationToken

The token to monitor for cancellation requests.

Returns

Task<Memory<byte>>

A task whose result is the answer's bytes.