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: 6.0.0+9ca59cfaf8ca9a019932258d79b859bcf16e8ed2
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
Gets the builder 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 overridden 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
Override this method to execute metadata registration operations.
Public methodRegisterAttributedType(Type)
Registers the provided concrete instance type and scans it for generate metadata data.
Public methodRegisterAttributedTypeTInstance
Registers the provided concrete instance and scans it for generic metadata attribute 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