Skip to main content

CkMethodDto

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.DataTransferObjects

A method declared on a CK type or interface (CK v2) — a definition only, there is no invocation runtime yet. Methods are inherited by derived and implementing types; a derived type must not re-declare an inherited method id, and a type must not redeclare an interface method with another signature.

public class CkMethodDto

Inheritance Object → CkMethodDto

Properties​

MethodId​

The element-versioned method id, e.g. ChangePassword-1.

public string MethodId { get; set; }

Property Value​

String

Kind​

The method kind; omitted means CkMethodKindDto.Instance.

public CkMethodKindDto Kind { get; set; }

Property Value​

CkMethodKindDto

Description​

An optional description of the method.

public string Description { get; set; }

Property Value​

String

Parameters​

The parameters of the method.

public List<CkMethodParameterDto> Parameters { get; set; }

Property Value​

List<CkMethodParameterDto>

Result​

The result of the method; null means the method has no result.

public CkMethodResultDto Result { get; set; }

Property Value​

CkMethodResultDto

Errors​

The domain error codes the method may return as data.

public List<CkMethodErrorDto> Errors { get; set; }

Property Value​

List<CkMethodErrorDto>

Authorization​

Who may invoke the method.

public CkMethodAuthorizationDto Authorization { get; set; }

Property Value​

CkMethodAuthorizationDto

Execution​

Execution options (timeout, idempotency).

public CkMethodExecutionDto Execution { get; set; }

Property Value​

CkMethodExecutionDto

Visibility​

CK v2 (F1.1-S4): Internal elements may only be referenced inside the declaring model. null (omitted) means CkVisibilityDto.Public. Requires ckLanguage: 2.

public Nullable<CkVisibilityDto> Visibility { get; set; }

Property Value​

Nullable<CkVisibilityDto>

ReplacesGenericCreate​

CK v2 Phase 3: true declares that this static method replaces the generic create of its type — entities of the type (and of every derived type) are created only through the method. Allowed only on a CkMethodKindDto.Static method of a non-abstract type (never on an interface method), at most one per concrete type including inherited ones, and only in a ckLanguage: 2 model (message 133; message 90 for ckLanguage 1). The compiler only records the flag; the refusal of the generic create is enforced by the asset repository. false (default, key omitted) is not serialized, so models that do not use the key serialize byte-identically. A model that uses it carries a raised minEngineVersion (CkEngineVersion.ReplacesGenericCreateMinEngineVersion), so older engines refuse it with message 126 instead of silently dropping the flag.

public bool ReplacesGenericCreate { get; set; }

Property Value​

Boolean

Constructors​

CkMethodDto()​

public CkMethodDto()