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