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); }
// 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"); }
// 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"); }