Beispiel #1
0
        public async Task <Subscriber> GetSubscriberAsync(string email)
        {
            var request = new GetSubscriber.Request {
                Email = email
            };

            setupPermissions(request);
            return((await _dispatcher.DispatchAsync <GetSubscriber.Request, GetSubscriber.Response>(request)).Subscriber);
        }
Beispiel #2
0
        public Subscriber GetSubscriber(string email)
        {
            var request = new GetSubscriber.Request {
                Email = email
            };

            setupPermissions(request);
            return(_dispatcher.Dispatch <GetSubscriber.Request, GetSubscriber.Response>(request).Subscriber);
        }