Exemple #1
0
        public static HealthCheckBuilder AddSmtpCheck(this HealthCheckBuilder builder, IConfiguration configuration)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }

            var options = new SmtpCheckOptions();

            configuration.Bind(options);

            return(builder.AddSmtpCheck(options));
        }