MetalamaAPI documentationPatterns APIMetalama.​Patterns.​ContractsContract­Base­AttributeGet­Actual­Direction
Open sandboxFocus

ContractBaseAttribute.GetActualDirection Method

GetActualDirection(IAspectBuilder, ContractDirection)

Gets the actual direction of the contract given the direction returned by GetDefinedDirection(IAspectBuilder), after resolving the Default value according to the characteristics of the target declaration, and after taking predecessors and secondary instances into account. The implementation of this method may return None to skip the aspect.

Declaration
protected override ContractDirection GetActualDirection(IAspectBuilder builder, ContractDirection direction)
Parameters
Type Name Description
IAspectBuilder builder
ContractDirection direction
Returns
Type Description
ContractDirection
Overrides
ContractAspect.GetActualDirection(IAspectBuilder, ContractDirection)