This last const Lib9c contains all JS-interopable exported function calls from C#, ([JSExport]).
As all example code provided from microsoft using this method, it's very hard to call this instance of constant Lib9c from other library when pre-initialized.
Also, since this resulting Lib9c method doesn't provide function parameter type abstract at compile time, it's making even harder to call from action generator.
There's problem with scope of initialized dotnet runtime in library, It's really vague problem.
TL;DR, this is the code we use when initialize dotnet instance.
This last
const Lib9c
contains all JS-interopable exported function calls from C#, ([JSExport]). As all example code provided from microsoft using this method, it's very hard to call this instance of constantLib9c
from other library when pre-initialized.Also, since this resulting Lib9c method doesn't provide function parameter type abstract at compile time, it's making even harder to call from action generator.