private void Run() { try { Target.Run(); } catch (Exception exception) { _notificationReporter.Report(Target.Name + ": " + Res.RunError, exception); 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(); } }