示例#1
0
        private object ResolveHandler(Type queryType, Type resultType)
        {
            Type handlerType = typeof(IQueryHandler <,>);
            Type type        = handlerType.MakeGenericType(queryType, resultType);

            return(_commandHandlerFactory.CreateHandler(type));
        }