void service_OnStateChanged(object sender, StateChangedArgs e) { serviceDispatcher.DispatchState(new StateItem(e.Name, e.ItemName, e.State)); }