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


Assemblies to process
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. If more than one class implements an interface then only one implementation will be registered although no error will be thrown.
Syntax
'Declaration
 
Public Overloads Sub AutoRegister( _
   ByVal assemblies As IEnumerable(Of Assembly), _
   ByVal registrationPredicate As Func(Of Type,Boolean) _
) 
'Usage
 
Dim instance As TinyIoCContainer
Dim assemblies As IEnumerable(Of Assembly)
Dim registrationPredicate As Func(Of Type,Boolean)
 
instance.AutoRegister(assemblies, registrationPredicate)
public void AutoRegister( 
   IEnumerable<Assembly> assemblies,
   Func<Type,bool> registrationPredicate
)

Parameters

assemblies
Assemblies to process
registrationPredicate
Predicate to determine if a particular type should be registered
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