Show / Hide Table of Contents

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 Source

RegisterAssemblyTypes(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());
  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.