private static void ValidateOptions(LetsEncryptOptions options) { options.ArgNotNull(nameof(options)); // Validate options options.Email.OptionNotBlank(nameof(LetsEncryptOptions.Email)); options.Hostname.OptionNotBlank(nameof(LetsEncryptOptions.Hostname)); options.FriendlyName.OptionNotBlank(nameof(LetsEncryptOptions.FriendlyName)); // Validate authority options options.Authority?.Name.OptionNotBlank($"{nameof(LetsEncryptOptions.Authority)}.{nameof(Authority.Name)}"); options.Authority?.DirectoryUri.OptionNotBlank($"{nameof(LetsEncryptOptions.Authority)}.{nameof(Authority.DirectoryUri)}"); }
public LetsEncrypt(LetsEncryptOptions options) { Options = options.ArgNotNull(nameof(options)); }