// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { InMemConfiguation inMemoryConfiguration = new InMemConfiguation(); InMemoryCacheRevocatonHandler cacheRevocatonHandler = new InMemoryCacheRevocatonHandler(inMemoryConfiguration); HttpClient httpClient = new HttpClient(); // add the required services services.AddRevocation(cacheRevocatonHandler, httpClient); AddHealthChecks(services); // add text reader support services.AddMvc(o => o.AddRevocationSupport()) .SetCompatibilityVersion(CompatibilityVersion.Version_2_1); }
public InMemoryCacheRevocatonHandler(InMemConfiguation inMemConfiguation) { this.inMemConfiguation = inMemConfiguation; }