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);
全部评论
相关推荐
07-21 09:33
门头沟学院 客户端其它 
点赞 评论 收藏
分享
06-28 17:41
清华大学 Java 点赞 评论 收藏
分享
07-03 14:11
广西大学 渠道销售 点赞 评论 收藏
分享