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

ContractAspect.GetDefinedDirection Method


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.

protected virtual ContractDirection GetDefinedDirection(IAspectBuilder builder)
Type Name Description
IAspectBuilder builder
Type Description

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.