Core - Don't retry loading plugins after shutdown has been initialized

Meta - Update packages
This commit is contained in:
Robert committed 2022-08-20 10:43:44 +02:00
1 parent 34799fd440
commit 340a309f9a
15 files changed
+197 -219

No files matched your search

@@ -38,17 +38,6 @@ namespace Artemis.VisualScripting.Ninject
// Evaluator
Bind<INoStringEvaluator>().To<NoStringEvaluator>().InSingletonScope();
// If needed
InjectUserDefinedFunctions();
}
private void InjectUserDefinedFunctions()
{
IFunctionReader? functionReader = (IFunctionReader?) Kernel?.GetService(typeof(IFunctionReader));
if (functionReader == null)
throw new Exception($"Could not get service of type {nameof(IFunctionReader)}.");
NoStringFunctionsInitializer.InitializeFunctions(functionReader, typeof(NoStringNinjectModule));
}
}
}