Skip to content

Instantly share code, notes, and snippets.

@kevingosse
Created June 23, 2020 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevingosse/7b2f396807e158fa6dae6c5c3f8945f6 to your computer and use it in GitHub Desktop.
Save kevingosse/7b2f396807e158fa6dae6c5c3f8945f6 to your computer and use it in GitHub Desktop.
public static void Initialize()
{
var loadContext = new StartupAssemblyLoadContext();
var assembly = loadContext.LoadFromAssemblyName(new AssemblyName("GCCollector"));
assembly.CreateInstance("GCCollector.Poller");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment