C# Класс Ninject.Activation.Strategies.PropertyInjectionStrategy

Injects properties on an instance during activation.
Наследование: Ninject.Activation.Strategies.ActivationStrategy
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AssignPropertyOverrides void
GetValue object

Открытые методы

Метод Описание
Activate ( IContext context, InstanceReference reference ) : void

Injects values into the properties as described by PropertyInjectionDirectives contained in the plan.

PropertyInjectionStrategy ( IInjectorFactory injectorFactory ) : System

Initializes a new instance of the PropertyInjectionStrategy class.

Приватные методы

Метод Описание
AssignPropertyOverrides ( IContext context, InstanceReference reference, IList propertyValues ) : void

Applies user supplied override values to instance properties.

GetValue ( IContext context, ITarget target, IEnumerable allPropertyValues ) : object

Gets the value to inject into the specified target.

Описание методов

Activate() публичный Метод

Injects values into the properties as described by PropertyInjectionDirectives contained in the plan.
public Activate ( IContext context, InstanceReference reference ) : void
context IContext The context.
reference InstanceReference A reference to the instance being activated.
Результат void

PropertyInjectionStrategy() публичный Метод

Initializes a new instance of the PropertyInjectionStrategy class.
public PropertyInjectionStrategy ( IInjectorFactory injectorFactory ) : System
injectorFactory IInjectorFactory The injector factory component.
Результат System