ScriptKid can run C# script and avoid memory leaks in Linux environments.
- ScriptKid will format the C# script.
- Then compute the Hash of the formatted C# Script through SHA256 algorithm.
- Compile the formatted C# script into the assembly.
- Cache the Assembly with the Hash primary key.
- Finally using collectible AssemblyLoadContext load the assembly and run it.
- Unload collectible AssemblyLoadContext.
services.AddScriptKid();