Class ContainerExtensions
Inheritance
System.Object
ContainerExtensions
Namespace:InfinniPlatform.IoC
Assembly:InfinniPlatform.Core.Abstractions.dll
Syntax
public static class ContainerExtensions : object
Methods
| Improve this Doc View SourceRegisterAssemblyTypes(IContainerBuilder, Assembly, Func<Type, Boolean>, Action<IContainerRegistrationRule>)
Регистрирует указанные типы текущей сборки.
Declaration
public static void RegisterAssemblyTypes(this IContainerBuilder builder, Assembly assembly, Func<Type, bool> typeSelector, Action<IContainerRegistrationRule> registrationRule = null)
Parameters
Type | Name | Description |
---|---|---|
IContainerBuilder | builder | |
Assembly | assembly | |
Func<Type, System.Boolean> | typeSelector | |
Action<IContainerRegistrationRule> | registrationRule |
Examples
RegisterAssemblyTypes(assembly,
t => typeof(IHttpService).IsAssignableFrom(t),
r => r.As<IHttpService>().SingleInstance());