Esempio n. 1
0
        private async Task CleanEmailsAsync(IEnumerable <string> emails,
                                            CancellationToken ct)
        {
            foreach (var email in emails)
            {
                await amazonSES.DeleteIdentityAsync(new DeleteIdentityRequest
                {
                    Identity = email
                }, ct);

                await keyValueStore.RemvoveAsync(StoreKey(email), ct);
            }
        }
Esempio n. 2
0
        public async Task RemoveEmailAddressAsync(string emailAddress, CancellationToken ct = default)
        {
            var request = new DeleteIdentityRequest
            {
                Identity = emailAddress
            };

            await amazonSES.DeleteIdentityAsync(request, ct);
        }