public RabbitMqOptionsValidator(RabbitMqOptions options, string name) { this.options = options; this.name = name; }
public static IConfigurationValidator Create(IServiceProvider services, string name) { RabbitMqOptions options = services.GetOptionsByName <RabbitMqOptions>(name); return(new RabbitMqOptionsValidator(options, name)); }