Click or drag to resize

AutofacAttributeExtensions Class

Extends registration syntax for attribute scenarios.
Inheritance Hierarchy
SystemObject
  Autofac.Extras.AttributeMetadataAutofacAttributeExtensions

Namespace:  Autofac.Extras.AttributeMetadata
Assembly:  Autofac.Extras.AttributeMetadata (in Autofac.Extras.AttributeMetadata.dll) Version: 4.0.1-CI-226
Syntax
public static class AutofacAttributeExtensions

The AutofacAttributeExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberWithAttributedMetadataTMetadata(IRegistrationBuilderObject, ScanningActivatorData, DynamicRegistrationStyle)
This method can be invoked with the assembly scanner to register strongly typed metadata attributes. The attributes are scanned for one that is derived from the metadata interface. If one is found, the metadata contents are extracted and registered with the instance registration
Public methodStatic memberWithAttributedMetadataTLimit, TScanningActivatorData, TRegistrationStyle(IRegistrationBuilderTLimit, TScanningActivatorData, TRegistrationStyle)
This method can be invoked with the assembly scanner to register metadata that is declared loosely using attributes marked with the MetadataAttributeAttribute. All of the marked attributes are used together to create a common set of dictionary values that constitute the metadata on the type.
Public methodStatic memberWithAttributeFilterTLimit, TReflectionActivatorData, TRegistrationStyle Obsolete.
Applies attribute-based filtering on constructor dependencies for use with attributes derived from the ParameterFilterAttribute.
Top
See Also