Пример #1
0
 public SwaggerDefaultValues(IOptions <SwaggerOption> swaggerOption)
 {
     _swaggerOption = swaggerOption.Value;
 }
Пример #2
0
 public ConfigureSwaggerOptions(IServiceProvider serviceProvider, IOptions <SwaggerOption> swaggerOptionAccessor)
 {
     this.swaggerOption = swaggerOptionAccessor.Value;
     _serviceProvider   = serviceProvider;
 }