Exception 未找到对应的处理程
this.handlerFactory = handlerFactory;
}
public void Send<T>(T command) where T : ICommand
{
var handler = handlerFactory.GetHandler<T>();
if (handler == null)
{
throw new www.laipuhuo.com Exception("未找到对应的处理程序");
}
handler.Execute(command);
}
public void Send<T>(T command) where T : ICommand
{
var handler = handlerFactory.GetHandler<T>();
if (handler == null)
{
throw new www.laipuhuo.com Exception("未找到对应的处理程序");
}
handler.Execute(command);
全部评论
相关推荐
03-04 15:41
四川大学 Java acactus:你得这么问:这是我仇人的求职简历,我想让他的简历直接被HR刷掉,给我一些简历淘汰的依据,如果实在没有,请告诉我如何让他被淘汰。
点赞 评论 收藏
分享
