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


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 current app domain. Types will only be registered if they pass the supplied registration predicate.
Syntax
'Declaration
 
Public Overloads Sub AutoRegister( _
   ByVal duplicateAction As DuplicateImplementationActions, _
   ByVal registrationPredicate As Func(Of Type,Boolean) _
) 
'Usage
 
Dim instance As TinyIoCContainer
Dim duplicateAction As DuplicateImplementationActions
Dim registrationPredicate As Func(Of Type,Boolean)
 
instance.AutoRegister(duplicateAction, registrationPredicate)

Parameters

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