public void Dispose()
        {
            if (_restEndpoint != null)
            {
                _restEndpoint.Dispose();
                _restEndpoint = null;
            }

            if (_monitorProcess != null)
            {
                AppDomainExecutor.KillAppDomain(_monitorProcess);
            }
        }
Esempio n. 2
0
 public static void Terminate()
 {
     AppDomainExecutor.KillAppDomain(_api);
     AppDomainExecutor.KillAppDomain(_monitor);
 }