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: 24.3.420.0 (24.3.420.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