title: Read from Configuration in Fluent Validators
body: <p>I am validating my model using Fluent Validation 8.</p>
  
  <p>I want to be able to read from my appsettings.json in my Validator class, but the Configuration is not getting injected.</p>
  
  <p>Here is my validator :</p>
  
  <pre><code> public class CreateOperationRequestValidator: AbstractValidator&lt;OperationInputModel&gt;
  {
      private IConfiguration Configuration { get; set; }
      public CreateOperationRequestValidator(IConfiguration configuration)
      {
  
  
          CascadeMode = CascadeMode.StopOnFirstFailure;
  
          RuleFor(m =&gt; m.mode).NotEmpty().IsInEnum();
              ;
  
      }
  </code></pre>
  
  <p>But my configuration is null.</p>
  
  <p>My startup is :</p>
  
  <pre><code> services.AddSingleton&lt;IConfiguration&gt;(Configuration);
  
          services.AddMvc(opt =&gt;
          {
              opt.Filters.Add(typeof(ValidatorActionFilter));
          }).AddFluentValidation(
              fvc =&gt; fvc.RegisterValidatorsFromAssemblyContaining&lt;Startup&gt;()
          );
  </code></pre>