public static IAmazonSimpleNotificationService Create(SnsSettings settings) { var amazonSnsClient = new AmazonSimpleNotificationServiceClient(new AmazonSimpleNotificationServiceConfig() { ServiceURL = settings.ServiceURL }); return(amazonSnsClient); }
static void Setup() { var amazonSnsConfig = new AmazonSimpleNotificationServiceConfig() { ServiceURL = snsUrl }; var amazonSnsClient = new AmazonSimpleNotificationServiceClient(amazonSnsConfig); var settings = new SnsSettings() { ServiceURL = snsUrl, TopicArn = snsTopicArn }; client = new SnsClient(amazonSnsClient, settings); }
public SnsClient(IAmazonSimpleNotificationService client, SnsSettings settings) { this.client = client; this.settings = settings; }