protected void OnCreated()
 {
     if (PatchManagerSettings.PersistentActive(this.Id) && !PatchManager.IsActive(this.Id))
     {
         EnablePatch();
     }
 }
 private static void DelayedEnablePatchedThatHadBeenActivePreviously()
 {
     if (!AutomaticallyEnablePersistentPatches)
     {
         return;
     }
     foreach (var patch in registeredPatchProviders)
     {
         if (PatchManagerSettings.PersistentActive(patch))
         {
             EnablePatch(patch);
         }
     }
 }