public void Run(IEventListener listener) { services.Where(c => c.RunState != RunState.Runnable) .ForEach( r => { try { r.Run(); listener.Started(r.Info); } catch (Exception ex) { listener.Error(r.Info, ex); } } ); }
public void Run(IEventListener listener) { services.Where(c => c.RunState != RunState.Runnable) .ForEach( r => { try { r.Run(); listener.Started(r.Info); } catch (Exception ex) { listener.Error(r.Info, ex); } } ); }