Close() приватный Метод

private Close ( ) : void
Результат void
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (scriptInstance != null)
         {
             scriptInstance.Close();
         }
     }
 }
        void UpdateScriptInstance(AutoWebProxyScriptWrapper newScriptInstance)
        {
            GlobalLog.Print("AutoWebProxyScriptEngine#" + ValidationHelper.HashString(this) + "::UpdateScriptInstance() updating scriptInstance#" + ValidationHelper.HashString(scriptInstance) + " to newScriptInstance#" + ValidationHelper.HashString(newScriptInstance));

            if (scriptInstance == newScriptInstance)
            {
                return;
            }

            if (scriptInstance != null)
            {
                GlobalLog.Print("AutoWebProxyScriptEngine#" + ValidationHelper.HashString(this) + "::UpdateScriptInstance() Closing engine.");
                scriptInstance.Close();
            }
            scriptInstance = newScriptInstance;
        }