コード例 #1
0
        public override async Task <T> ExecuteAsync(AsyncCall <TPageQuery, T> asyncCallMessage)
        {
            Type type     = mapper.GetIntermediateType <TPageQuery, T>();
            var  message  = (IMessage)mapper.Map(type, asyncCallMessage.PageQuery);
            var  response = await executeHandler.ExecuteAsync(message);

            return(mapper.Map <T>(message, response));
        }
コード例 #2
0
        public override async Task <TModel> ExecuteAsync(AsyncCall <TQuery, TModel> AsyncCallMessage)
        {
            var response = await executeHandler.ExecuteAsync(AsyncCallMessage.Message);

            return(mapper.Map <TModel>(AsyncCallMessage.Message, response));
        }