コード例 #1
0
        private void ProcessType(TypeDefinition typeToWeave, EventWeaver weakEventWeaver)
        {
            LogDebug("Beginning weak event weaving for " + typeToWeave.FullName);

            foreach (var eventt in typeToWeave.Events)
            {
                weakEventWeaver.ProcessEvent(eventt);
            }

            LogDebug("Finished weak event weaving for " + typeToWeave.FullName);
        }
コード例 #2
0
        private void ProcessType(TypeDefinition typeToWeave, EventWeaver weakEventWeaver)
        {
            LogDebug("Beginning weak event weaving for " + typeToWeave.FullName);

            foreach (var eventt in typeToWeave.Events)
            {
                weakEventWeaver.ProcessEvent(eventt);
            }

            LogDebug("Finished weak event weaving for " + typeToWeave.FullName);
        }
コード例 #3
0
        // Fody works by convention & will call this method to run the weaver.
        public override void Execute()
        {
            LogDebug("Beginning weak event weaving");

            var weakEventWeaver = new EventWeaver(ModuleDefinition, this);

            foreach (var typeDef in ModuleDefinition.Types)
            {
                if (typeDef.IsTypeToProcess())
                {
                    ProcessType(typeDef, weakEventWeaver);
                }
                else
                {
                    LogInfo("Skipping type " + typeDef);
                }
                RemoveAttributes(typeDef.CustomAttributes);
            }

            CleanReferences();

            LogDebug("Finished weak event weaving");
        }
コード例 #4
0
        // Fody works by convention & will call this method to run the weaver.
        public void Execute()
        {
            LogDebug("Beginning weak event weaving");

            var weakEventWeaver = new EventWeaver(ModuleDefinition, this);

            foreach (var typeDef in ModuleDefinition.Types)
            {
                if (typeDef.IsTypeToProcess())
                {
                    ProcessType(typeDef, weakEventWeaver);
                }
                else
                {
                    LogInfo("Skipping type " + typeDef);
                }
                RemoveAttributes(typeDef.CustomAttributes);
            }

            CleanReferences();

            LogDebug("Finished weak event weaving");
        }