Show / Hide Table of Contents

Interface IContainerRegistrationRule

Правила регистрации компонента.

Namespace:InfinniPlatform.IoC
Assembly:InfinniPlatform.Core.Abstractions.dll
Syntax
public interface IContainerRegistrationRule

Methods

| Improve this Doc View Source

As(Type[])

Определяет сервис, который предоставляет компонент.

Declaration
IContainerRegistrationRule As(params Type[] serviceTypes)
Parameters
Type Name Description
Type[] serviceTypes

Типы сервисов.

Returns
Type Description
IContainerRegistrationRule
| Improve this Doc View Source

As<TService>()

Определяет сервис, который предоставляет компонент.

Declaration
IContainerRegistrationRule As<TService>()
Returns
Type Description
IContainerRegistrationRule
Type Parameters
Name Description
TService

Тип сервиса.

| Improve this Doc View Source

AsImplementedInterfaces()

Определяет, что сервисами являются все интерфейсы, реализованные компонентом.

Declaration
IContainerRegistrationRule AsImplementedInterfaces()
Returns
Type Description
IContainerRegistrationRule
| Improve this Doc View Source

AsSelf()

Определяет, что сервисом является сам компонент.

Declaration
IContainerRegistrationRule AsSelf()
Returns
Type Description
IContainerRegistrationRule
| Improve this Doc View Source

ExternallyOwned()

Определяет, что зависимость никогда не освобождается контейнером.

Declaration
IContainerRegistrationRule ExternallyOwned()
Returns
Type Description
IContainerRegistrationRule
| Improve this Doc View Source

InstancePerDependency()

Определяет, что зависимость должна создаваться при каждом получении.

Declaration
IContainerRegistrationRule InstancePerDependency()
Returns
Type Description
IContainerRegistrationRule
| Improve this Doc View Source

InstancePerLifetimeScope()

Определяет, что зависимость должна создаваться на время выполнения запроса.

Declaration
IContainerRegistrationRule InstancePerLifetimeScope()
Returns
Type Description
IContainerRegistrationRule
| Improve this Doc View Source

SingleInstance()

Определяет, что зависимость создается один раз и навсегда.

Declaration
IContainerRegistrationRule SingleInstance()
Returns
Type Description
IContainerRegistrationRule

Extension Methods

DynamicCollectionExtensions.GetItem(Object, Int32)
DynamicCollectionExtensions.SetItem(Object, Int32, Object)
DynamicCollectionExtensions.AddItem(Object, Object)
DynamicCollectionExtensions.InsertItem(Object, Int32, Object)
DynamicCollectionExtensions.RemoveItem(Object, Object)
DynamicCollectionExtensions.RemoveItemAt(Object, Int32)
DynamicCollectionExtensions.MoveItem(Object, Object, Int32)
DynamicObjectExtensions.TryGetPropertyValue(Object, String)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TryGetPropertyValueByPath(Object, String)
DynamicObjectExtensions.TrySetPropertyValueByPath(Object, String, Object)
ReflectionExtensions.IsInstanceOfType(Object, Type)
ReflectionExtensions.GetMemberValue(Object, String)
ReflectionExtensions.SetMemberValue(Object, String, Object)
ReflectionExtensions.InvokeMember(Object, String, Object[], out Object, Type[])
ReflectionExtensions.GetFieldValue(Object, FieldInfo)
ReflectionExtensions.SetFieldValue(Object, FieldInfo, Object)
ReflectionExtensions.GetPropertyValue(Object, PropertyInfo)
ReflectionExtensions.SetPropertyValue(Object, PropertyInfo, Object)
ReflectionExtensions.GetMethodDelegate(Object, MethodInfo)
ReflectionExtensions.GetEventDelegate(Object, EventInfo)
ReflectionExtensions.SetEventDelegate(Object, EventInfo, Object)
CommonExtensions.ExecuteSilent<T>(T, Action<T>)
  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.