Cilador.Fody.Core.ModuleWeaver.IPartImportsSatisfiedNotification C# (CSharp) Метод

IPartImportsSatisfiedNotification() приватный Метод

Called by MEF when a part's imports have been satisfied and it is safe to use. For this type, it rebuilds some configuration information based on the imported weaver.
private IPartImportsSatisfiedNotification ( ) : void
Результат void
        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);
            }
        }