Files
QuestPDF/QuestPDF.Previewer/HotReloadManager.cs
T

18 lines
513 B
C#
Raw Normal View History

2022-03-16 22:46:21 +01:00
[assembly: System.Reflection.Metadata.MetadataUpdateHandler(typeof(QuestPDF.Previewer.HotReloadManager))]
namespace QuestPDF.Previewer
{
/// <summary>
/// Helper for subscribing to hot reload notifications.
/// </summary>
internal static class HotReloadManager
{
2022-03-19 17:26:58 +01:00
public static event EventHandler? UpdateApplicationRequested;
2022-03-16 22:46:21 +01:00
public static void UpdateApplication(Type[]? _)
{
2022-03-19 17:26:58 +01:00
UpdateApplicationRequested?.Invoke(null, EventArgs.Empty);
2022-03-16 22:46:21 +01:00
}
}
}