void IPartImportsSatisfiedNotification.OnImportsSatisfied()
{
Contract.Assert(this.CiladorConfig != null);
Contract.Assert(this.Weaves != null);
foreach (var weave in this.Weaves)
{
var weaveConfigType = weave.Metadata.ConfigType;
WeaveConfigTypeBase weaveConfig;
if (weaveConfigType == null || this.CiladorConfig.WeaveConfig == null) { weaveConfig = null; }
else
{
weaveConfig = this.CiladorConfig.WeaveConfig.FirstOrDefault(config => config.GetType() == weave.Metadata.ConfigType);
if (weaveConfig == null)
{
if (this.LogWarning != null)
{
this.LogWarning(string.Format("Ignoring weave with no configuration: [{0}]", weave.GetType().AssemblyQualifiedName));
}
continue;
}
}
weave.Value.Initialize(this, weaveConfig);
}
}