CkMethodModes
Namespace: Meshmakers.Octo.ConstructionKit.Contracts.DataTransferObjects
The execution modes of a CK method (CK v2 Phase 3), the values of CkMethodExecutionDto.Mode. The values are lower-case, exactly as authored; any other value is rejected by the compiler (message 142).
public static class CkMethodModes
Inheritance Object → CkMethodModes
Fields
Sync
The call returns the result of the method (default; the key is usually omitted).
public static string Sync;
Async
The call returns an operation handle once the handler has accepted the work; the result is read through the handle later. CkMethodExecutionDto.TimeoutSeconds bounds the accept step (the time until the handle is returned), not the operation. Only service handlers may be asynchronous (message 142).
public static string Async;
Methods
IsKnown(String)
True for a supported mode (ordinal, lower-case).
public static bool IsKnown(string mode)
Parameters
mode String
Returns
Effective(String)
The effective mode: mode, or CkMethodModes.Sync when omitted.
public static string Effective(string mode)
Parameters
mode String