Zum Hauptinhalt springen

CkMethodExecutionDto

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.DataTransferObjects

Execution options of a CkMethodDto (CK v2).

public class CkMethodExecutionDto

Inheritance Object → CkMethodExecutionDto

Fields​

DefaultTimeoutSeconds​

The timeout used when CkMethodExecutionDto.TimeoutSeconds is omitted.

public static int DefaultTimeoutSeconds;

Properties​

TimeoutSeconds​

Timeout in seconds (1-300); omitted means CkMethodExecutionDto.DefaultTimeoutSeconds.

public Nullable<int> TimeoutSeconds { get; set; }

Property Value​

Nullable<Int32>

Idempotent​

True when the method may safely be retried with the same arguments. Omitted means false.

public bool Idempotent { get; set; }

Property Value​

Boolean

Handler​

CK v2 Phase 3: who implements the method, see CkMethodHandlers. null (omitted) means CkMethodHandlers.Service, so models that do not use the key serialize byte-identically. An unknown value is reported by the compiler (message 131), not by the schema. The runtime that routes CkMethodHandlers.Pipeline calls is.

public string Handler { get; set; }

Property Value​

String

Mode​

CK v2 Phase 3: whether a call returns the result (CkMethodModes.Sync) or an operation handle (CkMethodModes.Async), see CkMethodModes. null (omitted) means CkMethodModes.Sync, so models that do not use the key serialize byte-identically. A model that sets the key on any method carries a raised minEngineVersion (CkEngineVersion.ExecutionModeMinEngineVersion), so an older engine refuses it with message 126 instead of running an async method as sync. The mode is part of the invocation contract (rule 122, SemVer row M19). An unknown value, async together with a CkMethodHandlers.Pipeline handler, or the key in a model without ckLanguage: 2 is reported by the compiler (message 142), not by the schema.

public string Mode { get; set; }

Property Value​

String

Constructors​

CkMethodExecutionDto()​

public CkMethodExecutionDto()