Table of Contents

Class PlatformInitializeHandler

Namespace
RDCore.SDK.Server.Handlers.Platform
Assembly
RDCore.SDK.dll

Answers the rdcore/platform/initialize handshake with this server's component type and the capabilities its entry assembly declares via [assembly: ProvidesCorePlatformClientCapability<T>], and records what the caller said it expects of this server.

[Method("rdcore/platform/initialize", Direction.ClientToServer)]
public class PlatformInitializeHandler : RDCoreRequestHandler<PlatformInitializeParams, PlatformInitializeResult>, IJsonRpcRequestHandler<PlatformInitializeParams, PlatformInitializeResult>, IRequestHandler<PlatformInitializeParams, PlatformInitializeResult>, IJsonRpcHandler
Inheritance
PlatformInitializeHandler
Implements
Inherited Members

Constructors

PlatformInitializeHandler(ILogger<IJsonRpcHandler>, PlatformComponentContext, IPlatformClientCapabilitiesService)

Answers the rdcore/platform/initialize handshake with this server's component type and the capabilities its entry assembly declares via [assembly: ProvidesCorePlatformClientCapability<T>], and records what the caller said it expects of this server.

public PlatformInitializeHandler(ILogger<IJsonRpcHandler> logger, PlatformComponentContext context, IPlatformClientCapabilitiesService clientCapabilities)

Parameters

logger ILogger<IJsonRpcHandler>
context PlatformComponentContext
clientCapabilities IPlatformClientCapabilitiesService

Methods

HandleAsync(PlatformInitializeParams, CancellationToken)

protected override Task<PlatformInitializeResult> HandleAsync(PlatformInitializeParams request, CancellationToken token)

Parameters

request PlatformInitializeParams
token CancellationToken

Returns

Task<PlatformInitializeResult>