예제 #1
0
        public async Task <List <Topic> > GetTopicsAsync()
        {
            var request = new GetTopics.Request();

            setupPermissions(request);
            return((await _dispatcher.DispatchAsync <GetTopics.Request, GetTopics.Response>(request)).Topics);
        }
예제 #2
0
        public List <Topic> GetTopics()
        {
            var request = new GetTopics.Request();

            setupPermissions(request);
            return(_dispatcher.Dispatch <GetTopics.Request, GetTopics.Response>(request).Topics);
        }