aboutsummaryrefslogtreecommitdiff
path: root/lib/Plugins.Runtime/src/IPluginReloadEventHandler.cs
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-04-15 01:58:55 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-04-15 01:58:55 -0400
commit3ce61cf38727db2f37a0e478182d2a73222c8a7c (patch)
treea03bf1bdde44961183b7bb34dea9c3381050dc27 /lib/Plugins.Runtime/src/IPluginReloadEventHandler.cs
parentbaf859f45cf1f00e79508954517ed4b6fb446103 (diff)
Managed assembly loading overhaul
Diffstat (limited to 'lib/Plugins.Runtime/src/IPluginReloadEventHandler.cs')
-rw-r--r--lib/Plugins.Runtime/src/IPluginReloadEventHandler.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/Plugins.Runtime/src/IPluginReloadEventHandler.cs b/lib/Plugins.Runtime/src/IPluginReloadEventHandler.cs
new file mode 100644
index 0000000..d29ad8c
--- /dev/null
+++ b/lib/Plugins.Runtime/src/IPluginReloadEventHandler.cs
@@ -0,0 +1,36 @@
+/*
+* Copyright (c) 2023 Vaughn Nugent
+*
+* Library: VNLib
+* Package: VNLib.Plugins.Runtime
+* File: IPluginReloadEventHandler.cs
+*
+* IPluginReloadEventHandler.cs is part of VNLib.Plugins.Runtime which
+* is part of the larger VNLib collection of libraries and utilities.
+*
+* VNLib.Plugins.Runtime is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published
+* by the Free Software Foundation, either version 2 of the License,
+* or (at your option) any later version.
+*
+* VNLib.Plugins.Runtime is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with VNLib.Plugins.Runtime. If not, see http://www.gnu.org/licenses/.
+*/
+
+namespace VNLib.Plugins.Runtime
+{
+ internal interface IPluginReloadEventHandler
+ {
+ /// <summary>
+ /// Called every time a watched <see cref="IPluginAssemblyLoader"/> has a file in the directory
+ /// change
+ /// </summary>
+ /// <param name="loader">The <see cref="IPluginAssemblyLoader"/> that had a file change event occur</param>
+ void OnPluginUnloaded(IPluginAssemblyLoader loader);
+ }
+}