Skip to main content

CkMethodGraph

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.DependencyGraph

A method of a CK type in the dependency graph (CK v2). CkTypeGraph.AllMethods holds one entry per method including inherited ones; CkMethodGraph.DeclaringCkTypeId is the type that declares the method (the base type for an inherited method).

public record CkMethodGraph : IEquatable<CkMethodGraph>

Inheritance Object → CkMethodGraph
Implements IEquatable<CkMethodGraph>

Properties​

DeclaringCkTypeId​

The CK type that declares the method

public CkId<CkTypeId> DeclaringCkTypeId { get; set; }

Property Value​

CkId<CkTypeId>

Definition​

The method definition as declared in the model

public CkMethodDto Definition { get; set; }

Property Value​

CkMethodDto

Visibility​

CK v2 (F1.1-S4): the effective visibility of the method (declared, otherwise Public).

public CkVisibilityDto Visibility { get; }

Property Value​

CkVisibilityDto

QualifiedMethodId​

The model-version-less qualified method id (see CkMethodGraph.QualifiedMethodId).

public string QualifiedMethodId { get; }

Property Value​

String

TimeoutSeconds​

The effective timeout (CkMethodExecutionDto.TimeoutSeconds or CkMethodExecutionDto.DefaultTimeoutSeconds).

public int TimeoutSeconds { get; }

Property Value​

Int32

Handler​

The effective handler kind, see CkMethodHandlers. pipeline: the deployed pipeline named like CkMethodGraph.QualifiedMethodId implements the method, no service handler is expected.

public string Handler { get; }

Property Value​

String

Mode​

The effective execution mode, see CkMethodModes. async: a call returns an operation handle once the handler has accepted the work; CkMethodGraph.TimeoutSeconds bounds that accept step.

public string Mode { get; }

Property Value​

String

IsAsync​

True when CkMethodGraph.Mode is CkMethodModes.Async.

public bool IsAsync { get; }

Property Value​

Boolean

ReplacesGenericCreate​

True when this static method replaces the generic create of CkMethodGraph.DeclaringCkTypeId and of every type derived from it (the refusal itself is enforced by the asset repository).

public bool ReplacesGenericCreate { get; }

Property Value​

Boolean

HasSensitiveResult​

True when the result of this method is marked sensitive (never logged, audited or traced). False for a method without a result.

public bool HasSensitiveResult { get; }

Property Value​

Boolean

DataAccess​

The effective data access of the method — the data permission a caller needs on the target record (declared authorization.dataAccess, otherwise CkMethodDataAccessDto.Write).

public CkMethodDataAccessDto DataAccess { get; }

Property Value​

CkMethodDataAccessDto

Constructors​

CkMethodGraph(CkId<CkTypeId>, CkMethodDto)​

A method of a CK type in the dependency graph (CK v2). CkTypeGraph.AllMethods holds one entry per method including inherited ones; CkMethodGraph.DeclaringCkTypeId is the type that declares the method (the base type for an inherited method).

public CkMethodGraph(CkId<CkTypeId> DeclaringCkTypeId, CkMethodDto Definition)

Parameters​

DeclaringCkTypeId CkId<CkTypeId>
The CK type that declares the method

Definition CkMethodDto
The method definition as declared in the model