HotReloadManager.cs 513 B

1234567891011121314151617
  1. [assembly: System.Reflection.Metadata.MetadataUpdateHandler(typeof(QuestPDF.Previewer.HotReloadManager))]
  2. namespace QuestPDF.Previewer
  3. {
  4. /// <summary>
  5. /// Helper for subscribing to hot reload notifications.
  6. /// </summary>
  7. internal static class HotReloadManager
  8. {
  9. public static event EventHandler? UpdateApplicationRequested;
  10. public static void UpdateApplication(Type[]? _)
  11. {
  12. UpdateApplicationRequested?.Invoke(null, EventArgs.Empty);
  13. }
  14. }
  15. }