private void Initialize() { if (!_initialized) { _js = _jsRuntimeProvider.GetInstance(); _js.Initialize(); _js.LoadLibrary(Utility.ResourceAsString(CompilerLibraryResourceName, this.GetType())); _initialized = true; } }
private void Initialize() { if (!initialized) { js = jsRuntimeProvider.Value; js.Initialize(); foreach (var resource in CompilerLibraryResourceNames) { js.LoadLibrary(ReadEmbeddedResource(resource, GetType())); } initialized = true; } }