public override PatchResult Patch(ICommonAssembly assembly)
        {
            log.Info("Check assembly patched attribute...");

            if (assembly.ContainsReflectionAttribute <AssemblyPatchedAttribute>())
            {
                log.Info("Assembly patched attribute found");
                return(PatchResult.Cancel);
            }

            log.Info("Assembly patched attribute not found");
            return(PatchResult.Continue);
        }
 public static bool NotContainsReflectionAttribute(this ICommonAssembly commonAssembly, IHasType attributeHasType)
 {
     return(!commonAssembly.ContainsReflectionAttribute(attributeHasType));
 }
 public static bool NotContainsReflectionAttribute <TAttribute>(this ICommonAssembly commonAssembly) where TAttribute : Attribute
 {
     return(!commonAssembly.ContainsReflectionAttribute <TAttribute>());
 }
 public static bool ContainsReflectionAttribute <TAttribute>(this ICommonAssembly commonAssembly) where TAttribute : Attribute
 {
     return(commonAssembly.ContainsReflectionAttribute(typeof(TAttribute)));
 }