Example #1
0
 public OcelotSwaggerMiddleware(
     RequestDelegate next,
     IOptionsMonitor <OcelotSwaggerOptions> optionsAccessor)
 {
     this._next    = next;
     this._options = optionsAccessor.CurrentValue;
 }
Example #2
0
 public OcelotSwaggerMiddleware(
     RequestDelegate next,
     IOptionsMonitor <OcelotSwaggerOptions> optionsAccessor,
     IInternalConfigurationRepository internalConfiguration,
     IDistributedCache cache)
 {
     this._next    = next;
     this._options = optionsAccessor.CurrentValue;
     this._internalConfiguration = internalConfiguration;
     this._cache = cache;
 }
 public DocsController(IOptions <OcelotSwaggerOptions> options, IMemoryCache memoryCache)
 {
     _ocelotSwaggerOptions = options.Value;
     _memoryCache          = memoryCache;
 }