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(&quot;未找到对应的处理程序&quot;);
        }

        handler.Execute(command);
全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务