public OcelotSwaggerMiddleware( RequestDelegate next, IOptionsMonitor <OcelotSwaggerOptions> optionsAccessor) { this._next = next; this._options = optionsAccessor.CurrentValue; }
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; }