Click or drag to resize

MetadataModuleTInterface, TMetadata Class

Provides a mechanism to separate metadata registrations from compile-time attributes
Inheritance Hierarchy
SystemObject
  AutofacModule
    Autofac.Extras.AttributeMetadataMetadataModuleTInterface, TMetadata

Namespace:  Autofac.Extras.AttributeMetadata
Assembly:  Autofac.Extras.AttributeMetadata (in Autofac.Extras.AttributeMetadata.dll) Version: 4.0.1-CI-226
Syntax
public abstract class MetadataModule<TInterface, TMetadata> : Module, 
	IMetadataRegistrar<TInterface, TMetadata>

Type Parameters

TInterface
interface used on concrete types of metadata decorated instances
TMetadata
strongly typed metadata definition

The MetadataModuleTInterface, TMetadata type exposes the following members.

Constructors
  NameDescription
Protected methodMetadataModuleTInterface, TMetadata
Initializes a new instance of the MetadataModuleTInterface, TMetadata class
Top
Properties
  NameDescription
Public propertyContainerBuilder
Used to build an IContainer from component registrations.
Protected propertyThisAssembly
Gets the assembly in which the concrete module type is located. To avoid bugs whereby deriving from a module will change the target assembly, this property can only be used by modules that inherit directly from Module.
(Inherited from Module.)
Top
Methods
  NameDescription
Protected methodAttachToComponentRegistration
Override to attach module-specific functionality to a component registration.
(Inherited from Module.)
Protected methodAttachToRegistrationSource
Override to perform module-specific processing on a registration source.
(Inherited from Module.)
Public methodConfigure
Apply the module to the component registry.
(Inherited from Module.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodLoad
standard module method being overloaded and sealed to provide wrapped metadata registration
(Overrides ModuleLoad(ContainerBuilder).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRegister
client overrided method where metadata registration is performed
Public methodRegisterAttributedType(Type)
registers the provided concrrete instance type and scans it for generate metadata data
Public methodRegisterAttributedTypeTInstance
registers the provided concrete instance and scans it for generic MetadataAttribute data
Public methodRegisterType(Type, TMetadata)
registers provided metadata on the declared type
Public methodRegisterTypeTInstance(TMetadata)
registers provided metadata on the declared type
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also