示例#1
0
        public async Task <QueryResult <double> > GetQueryResultAsync(GetAverageFollowersQuery query)
        {
            var handler = new GetAverageFollowersQueryHandler(new CrateClient(_crateUrl));

            return(await handler.HandleAsync(query));
        }
示例#2
0
        public async Task <QueryResult <double> > GetQueryResultAsync(GetAverageFollowersQuery query)
        {
            var handler = new GetAverageFollowersQueryHandler(this.client);

            return(await handler.HandleAsync(query));
        }