private void Initialize()
 {
     if (!_initialized) {
         _js = _jsRuntimeProvider.GetInstance();
         _js.Initialize();
         _js.LoadLibrary(Utility.ResourceAsString(CompilerLibraryResourceName, this.GetType()));
         _initialized = true;
     }
 }
示例#2
0
 private void Initialize()
 {
     if (!_initialized)
     {
         _js = _jsRuntimeProvider.GetInstance();
         _js.Initialize();
         _js.LoadLibrary(Utility.ResourceAsString(CompilerLibraryResourceName, this.GetType()));
         _initialized = true;
     }
 }
示例#3
0
 private void Initialize()
 {
     if (!initialized)
     {
         js = jsRuntimeProvider.Value;
         js.Initialize();
         foreach (var resource in CompilerLibraryResourceNames)
         {
             js.LoadLibrary(ReadEmbeddedResource(resource, 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;
     }
 }