private void Clean(IServiceRunTarget target) { try { target.Clean(); } catch (Exception exception) { Reporter.Report(string.Format("{0}: {1}", target.Name, Res.CleanError), exception); } }
private void Clean(IServiceRunTarget target) { try { target.Clean(); } catch (Exception exception) { _reporter.Report(string.Format("{0}: {1}", target.Name, Res.CleanError), exception); } }
private void Run(IServiceRunTarget target) { if (_client == null) { _client = _clientFactory.Create(); } try { target.Run(_client); } catch (Exception exception) { Reporter.Report(string.Format("{0}: {1}", target.Name, Res.RunError), exception); Clean(target); Clean(); } }
private void Run(IServiceRunTarget target) { if (_client == null) _client = _clientFactory.Create(); try { target.Run(_client); } catch (Exception exception) { _reporter.Report(string.Format("{0}: {1}", target.Name, Res.RunError), exception); Clean(target); Clean(); } }