public static IServiceCollection AddSystemSmtpSender(this IServiceCollection services, SystemSmtpSenderConfiguration configuration)
 {
     services.AddSingleton <SystemSmtpSenderConfiguration>(configuration);
     services.AddTransient <ISystemSmtpSender, SystemSmtpSender>();
     return(services);
 }
Esempio n. 2
0
 public TestSystemSmtpSender(SystemSmtpSenderConfiguration configuration)
 {
     _configuration = configuration;
 }