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
Definition
The method definition as declared in the model
public CkMethodDto Definition { get; set; }
Property Value
Visibility
CK v2 (F1.1-S4): the effective visibility of the method (declared, otherwise Public).
public CkVisibilityDto Visibility { get; }
Property Value
QualifiedMethodId
The model-version-less qualified method id (see CkMethodGraph.QualifiedMethodId).
public string QualifiedMethodId { get; }
Property Value
TimeoutSeconds
The effective timeout (CkMethodExecutionDto.TimeoutSeconds or CkMethodExecutionDto.DefaultTimeoutSeconds).
public int TimeoutSeconds { get; }
Property Value
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
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
IsAsync
True when CkMethodGraph.Mode is CkMethodModes.Async.
public bool IsAsync { get; }
Property Value
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
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
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
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