RoslynLifetimeManager Class

This helper can help start up Roslyn before first call so that there's no long startup delay for first script execution and you can also optionally shut Roslyn down and kill the VBCSCompiler that otherwise stays loaded even after shutting down your application.

System.Object
   Westwind.Scripting.RoslynLifetimeManager

Class Members

MemberDescription
Constructor
GetMainModuleFileName
public string GetMainModuleFileName(Process process)
ShutdownRoslyn Call this method to shut down the VBCSCompiler if ourapplication started it.
public void ShutdownRoslyn(string appStartupPath)
WarmupRoslyn Run a script execution asynchronously in the background to warm up Roslyn.Call this during application startup or anytime before you run the firstscript to ensure scripts execute quickly.Although…
public Task WarmupRoslyn()
Namespace: Westwind.Scripting

Assembly: Westwind.Scripting.dll