Exemplo n.º 1
0
 public static IServiceCollection AddSyntheticsSesAlerting(this IServiceCollection services, SesSyntheticsAlerterConfig config)
 {
     return(services.AddSingleton(config)
            .AddSingleton <ISyntheticsAlerter, SesSyntheticsAlerter>()
            .AddSingleton <IAmazonSimpleEmailService, AmazonSimpleEmailServiceClient>());
 }
 public SesSyntheticsAlerter(IAmazonSimpleEmailService simpleEmailService, SesSyntheticsAlerterConfig config)
 {
     _simpleEmailService = simpleEmailService;
     _config             = config;
 }