You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ITypeFinder can be used to discover types in the application, even before the dependency injection registration phase completed.
Example usage:
publicoverridevoidPreConfigureServices(ServiceConfigurationContextcontext){vartypeFinder= context.Services.GetSingletonInstance<ITypeFinder>();foreach(var type in typeFinder.Types){if(type.IsAssignableTo<Control>()){// do something...}}}
After the dependency injection phase completed, you can inject ITypeFinder into any class.
ITypeFinder makes it easy to find all types of the application without manually searching all the assemblies. It also makes the assembly search only once, so it is optimized.
There is also IAssemblyFinder to get all assemblies in the application.
Note that assemblies and types are returned only for the assemblies with AbpModule classes.
The text was updated successfully, but these errors were encountered:
ITypeFinder
can be used to discover types in the application, even before the dependency injection registration phase completed.Example usage:
After the dependency injection phase completed, you can inject
ITypeFinder
into any class.ITypeFinder
makes it easy to find all types of the application without manually searching all the assemblies. It also makes the assembly search only once, so it is optimized.There is also
IAssemblyFinder
to get all assemblies in the application.Note that assemblies and types are returned only for the assemblies with AbpModule classes.
The text was updated successfully, but these errors were encountered: