aboutsummaryrefslogtreecommitdiff
path: root/lib/Plugins/src/IPlugin.cs
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-01-02 02:33:05 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2024-01-02 02:33:05 -0500
commit4ef0142747c4a0dd0c4cb71d8e7359c03b3a2942 (patch)
tree2991941aec6a0b981411a4f4bb83d8d2ad900aba /lib/Plugins/src/IPlugin.cs
parenta6b628c8653485a803bdbe322e2ecd2a69fc8e5a (diff)
breaking changes: plugin service pools & move plugin api away from web related
Diffstat (limited to 'lib/Plugins/src/IPlugin.cs')
-rw-r--r--lib/Plugins/src/IPlugin.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/Plugins/src/IPlugin.cs b/lib/Plugins/src/IPlugin.cs
index c1fa6a6..cf581d6 100644
--- a/lib/Plugins/src/IPlugin.cs
+++ b/lib/Plugins/src/IPlugin.cs
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2023 Vaughn Nugent
+* Copyright (c) 2024 Vaughn Nugent
*
* Library: VNLib
* Package: VNLib.Plugins
@@ -43,5 +43,16 @@ namespace VNLib.Plugins
/// Invoked when the plugin is unloaded from the runtime
/// </summary>
void Unload();
+
+ /// <summary>
+ /// Called directly after the plugin is loaded to allow for service
+ /// publishing for the host application to use
+ /// <para>
+ /// NOTE: A service pool is shared for each assembly, if there are multiple
+ /// plugins per assembly, they will share the same service pool.
+ /// </para>
+ /// </summary>
+ /// <param name="pool">The service publisher instance</param>
+ void PublishServices(IPluginServicePool pool);
}
} \ No newline at end of file