Load all plugins asynchronously without waiting for completion

This commit is contained in:
Thorsten Sommer 2025-03-23 12:55:36 +01:00
parent 5bca1908b1
commit f885db8f1b
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -91,9 +91,9 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, IDis
// Ensure that all internal plugins are present:
await PluginFactory.EnsureInternalPlugins();
// Load (but not start) all plugins:
// Load (but not start) all plugins, without waiting for them:
var pluginLoadingTimeout = new CancellationTokenSource(TimeSpan.FromSeconds(5));
await PluginFactory.LoadAll(pluginLoadingTimeout.Token);
_ = PluginFactory.LoadAll(pluginLoadingTimeout.Token);
}
// Register this component with the message bus: