Responder Developer Guide
AutoRegister(IEnumerable<Assembly>,DuplicateImplementationActions,Func<Type,Boolean>) Method


Assemblies to process
What action to take when encountering duplicate implementations of an interface/base class.
Predicate to determine if a particular type should be registered
Attempt to automatically register all non-generic classes and interfaces in the specified assemblies Types will only be registered if they pass the supplied registration predicate.
Syntax
'Declaration
 
Public Overloads Sub AutoRegister( _
   ByVal assemblies As IEnumerable(Of Assembly), _
   ByVal duplicateAction As DuplicateImplementationActions, _
   ByVal registrationPredicate As Func(Of Type,Boolean) _
) 
'Usage
 
Dim instance As TinyIoCContainer
Dim assemblies As IEnumerable(Of Assembly)
Dim duplicateAction As DuplicateImplementationActions
Dim registrationPredicate As Func(Of Type,Boolean)
 
instance.AutoRegister(assemblies, duplicateAction, registrationPredicate)

Parameters

assemblies
Assemblies to process
duplicateAction
What action to take when encountering duplicate implementations of an interface/base class.
registrationPredicate
Predicate to determine if a particular type should be registered
Exceptions
ExceptionDescription
TinyIoCAutoRegistrationException 
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

TinyIoCContainer Class
TinyIoCContainer Members
Overload List

 

 


Send Comment