service中的适配器是将数值传给该枚举下与之绑定监听的方法,command中则通过service匹配枚举与方法,通过监听方法在调用该方法时通过IEvent下的date来传递数值到参数。
Dispatcher.Dispatch(Demo1ServiceEvent.RequestScore,score);这里已经出发了该枚举,它便会将score传递给ScoreService.Dispatcher.AddListener(Demo1ServiceEvent.RequestScore,OnCompelet);中绑定的OnCompelet方法,并调用该方法。