public CoreFunctionsManager() { internalCoreFunctions = InternalCoreFunctions.Create(); RegisterFunctions("Default", internalCoreFunctions); CurrentFunctions = internalCoreFunctions; }
public CoreFunctionsManager() { var libraryName = NativeMethods.IsUnix() ? CoreFunctionsModuleUnix : CoreFunctionsModuleWindows; internalCoreFunctionsHandle = NativeMethods.LoadLibrary("./" + libraryName); if (internalCoreFunctionsHandle.IsNull()) { throw new FileNotFoundException(libraryName); } internalCoreFunctions = new InternalCoreFunctions(internalCoreFunctionsHandle); RegisterFunctions("Default", internalCoreFunctions); currentFunctions = internalCoreFunctions; }