Skip to main content

CkMethodHandlers

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.DataTransferObjects

The handler kinds of a CK method (CK v2 Phase 3), the values of CkMethodExecutionDto.Handler. The values are lower-case, exactly as authored; any other value is rejected by the compiler (message 131).

public static class CkMethodHandlers

Inheritance Object → CkMethodHandlers

Fields​

Service​

A service registers a handler for the method (default; the key is usually omitted).

public static string Service;

Pipeline​

The method is implemented by a pipeline: the deployed pipeline whose well-known name equals the qualified method id (e.g. Acme.Assets/Device.UpdateFirmware-1) handles the call and no service handler is expected. Requires an explicit CkMethodExecutionDto.TimeoutSeconds and is not allowed on interface methods (message 131).

public static string Pipeline;

Methods​

IsKnown(String)​

True for a supported handler kind (ordinal, lower-case).

public static bool IsKnown(string handler)

Parameters​

handler String

Returns​

Boolean

Effective(String)​

The effective handler kind: handler, or CkMethodHandlers.Service when omitted.

public static string Effective(string handler)

Parameters​

handler String

Returns​

String