/// <summary> /// Initializes a new instance of <see cref="Emailer"/> class. /// </summary> /// <param name="serviceProvider">Service provider.</param> /// <param name="options">Options.</param> public SmtpEmailer(IServiceProvider serviceProvider, IOptions <SmtpOptions> options) { m_serviceProvider = serviceProvider; m_options = options.Value; }