MetalamaAPI documentationAspect APIMetalama.​Framework.​AspectsContract­AspectGet­Defined­Direction
Open sandboxFocus

ContractAspect.GetDefinedDirection Method

GetDefinedDirection(IAspectBuilder)

Gets or sets the direction of the data flow (Input, Output or Both) to which this contract applies, as defined by the current aspect. This method returns Default by default. When this method returns Default, the actual direction is determined according to the characteristics of the target declaration.

Declaration
protected virtual ContractDirection GetDefinedDirection(IAspectBuilder builder)
Parameters
Type Name Description
IAspectBuilder builder
Returns
Type Description
ContractDirection
Remarks

In general, it is the responsibility of the author of the aspect, and not of its user, to define the eligible directions of a contract. However, the aspect's author can opt to allow users to define the contract direction by exposing this property as public in derived classes.