Click or drag to resize

CalculationContextAddFacet Method

Adds a facet to the context.

Namespace:  AGI.Foundation.Infrastructure
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 21.2.409.0 (21.2.409.0)
Syntax
public void AddFacet(
	int facetId,
	CalculationContextFacet facet
)

Parameters

facetId
Type: SystemInt32
The Id of the facet to add.
facet
Type: AGI.Foundation.InfrastructureCalculationContextFacet
The facet to add.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown when the facetId has not been allocated to any facet type.
See Also