Open sandboxFocus
  • TOC

Metalama Documentation

Getting started

Video tutorials

Conceptual documentation

Commented examples

API documentation

Aspect API

Extensions API

Patterns API

Metalama.​Patterns.​Caching

Metalama.​Patterns.​Caching.​Aspects

Metalama.​Patterns.​Caching.​Aspects.​Configuration

Metalama.​Patterns.​Caching.​Aspects.​Helpers

Metalama.​Patterns.​Caching.​Backends

Metalama.​Patterns.​Caching.​Backends.​Azure

Metalama.​Patterns.​Caching.​Backends.​Redis

Metalama.​Patterns.​Caching.​Building

Metalama.​Patterns.​Caching.​Dependencies

Metalama.​Patterns.​Caching.​Formatters

Metalama.​Patterns.​Caching.​Implementation

Metalama.​Patterns.​Caching.​Locking

Metalama.​Patterns.​Caching.​Serializers

Metalama.​Patterns.​Caching.​Value­Adapters

Metalama.​Patterns.​Contracts

Metalama.​Patterns.​Contracts.​Numeric

Metalama.​Patterns.​Immutability

Metalama.​Patterns.​Immutability.​Configuration

Metalama.​Patterns.​Memoization

Metalama.​Patterns.​Observability

Metalama.​Patterns.​Observability.​Configuration

Metalama.​Patterns.​Observability.​Implementation

Metalama.​Patterns.​Wpf

Metalama.​Patterns.​Wpf.​Configuration

Flashtrace API

Introspection API

Advanced API

Post­Sharp API migration

  • Article

Method BuildEligibility

BuildEligibility(IEligibilityBuilder<IFieldOrPropertyOrIndexer>)

Configures the eligibility of the aspect or attribute. Implementations are not allowed to reference non-static members. Implementations must call the implementation of the base class if it exists.

Declaration
public override void BuildEligibility(IEligibilityBuilder<IFieldOrPropertyOrIndexer> builder)
Parameters
Type Name Description
IEligibilityBuilder<IFieldOrPropertyOrIndexer> builder

An object that allows the aspect to configure characteristics like description, dependencies, or layers.

Overrides
Remarks

Do not reference instance class members in your implementation of BuildEligibility(IEligibilityBuilder<T>). Indeed, this method is called on an instance obtained using GetUninitializedObject(Type), that is, without invoking the class constructor.

See Also

BuildEligibility(IEligibilityBuilder<IParameter>)

Configures the eligibility of the aspect or attribute. Implementations are not allowed to reference non-static members. Implementations must call the implementation of the base class if it exists.

Declaration
public override void BuildEligibility(IEligibilityBuilder<IParameter> builder)
Parameters
Type Name Description
IEligibilityBuilder<IParameter> builder

An object that allows the aspect to configure characteristics like description, dependencies, or layers.

Overrides
Remarks

Do not reference instance class members in your implementation of BuildEligibility(IEligibilityBuilder<T>). Indeed, this method is called on an instance obtained using GetUninitializedObject(Type), that is, without invoking the class constructor.

See Also