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); } }
public async Task RemoveEmailAddressAsync(string emailAddress, CancellationToken ct = default) { var request = new DeleteIdentityRequest { Identity = emailAddress }; await amazonSES.DeleteIdentityAsync(request, ct); }