/// <summary> /// 事件响应 /// </summary> public void BuildEventPath <TEvent>(string description, LogEnum logType, Action <TEvent> action) where TEvent : IEvent { var messagePathId = VirtualRoot.BuildPath(description, logType, action); _serverContextHandlers.Add(messagePathId); }
/// <summary> /// 命令窗口。使用该方法的代码行应将前两个参数放在第一行以方便vs查找引用时展示出参数信息 /// </summary> public void BuildCmdPath <TCmd>(string description, LogEnum logType, Action <TCmd> action) where TCmd : ICmd { var messagePathId = VirtualRoot.BuildPath(description, logType, action); _serverContextHandlers.Add(messagePathId); }