Пример #1
0
 public void Dispose()
 {
     if (_jsContext != null)
     {
         _jsContext.Dispose();
         _jsContext = null;
     }
     if (_jsEngine != null)
     {
         _jsEngine.Dispose();
         _jsEngine = null;
     }
     if (_singleton != null)
     {
         _singleton = null;
     }
 }
Пример #2
0
 public void Teardown()
 {
     jsEngine.Dispose();
 }
Пример #3
0
 public void Teardown()
 {
     js.Dispose();
 }