public BuildComponentModel ( IKernel kernel, |
||
kernel | IKernel | |
model | ||
return | void |
public override void BuildComponentModel(IKernel kernel, ComponentModel model)
{
var dictionary = value as IDictionary;
if (dictionary != null)
{
foreach (DictionaryEntry property in dictionary)
{
Apply(model, property.Key, property.Value, null);
}
}
var overrides = value as ServiceOverride[];
if (overrides != null)
{
Array.ForEach(overrides, o => Apply(model, o.DependencyKey, o.Value, o));
}
}