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