예제 #1
0
        public async Task <QueryResult <IList <Tweet> > > GetQueryResultAsync(GetTweetsWithHashtagQuery query)
        {
            var handler = new GetTweetsWithHashtagQueryHandler(new CrateClient(_crateUrl));

            return(await handler.HandleAsync(query));
        }
예제 #2
0
        public async Task <QueryResult <IList <Tweet> > > GetQueryResultAsync(GetTweetsWithHashtagQuery query)
        {
            var handler = new GetTweetsWithHashtagQueryHandler(this.client);

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