Table of Contents

Class CancellationTokenSourceProvider

Namespace
RDCore.SDK.Client
Assembly
RDCore.SDK.dll

Creates, encapsulates, and provides CancellationTokenSource references for the duration of the host process lifetime.

public sealed class CancellationTokenSourceProvider : ICancellationTokenSourceProvider, IDisposable
Inheritance
CancellationTokenSourceProvider
Implements
Inherited Members

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetOrCreateHostTokenSource()

Gets or creates a CancellationTokenSource that triggers to exit the host (LSP client) application.

public CancellationTokenSource GetOrCreateHostTokenSource()

Returns

CancellationTokenSource

GetOrCreateServerTokenSource()

Gets or creates a CancellationTokenSource that triggers to exit the connected LSP process.

public CancellationTokenSource GetOrCreateServerTokenSource()

Returns

CancellationTokenSource