In App_Start under the Configure function I added a this.RequestFilters.Add((req, res, dto) piece for authorization check.
I look up some data in the database and want to cache it to prevent constant lookups. What I can't seem to figure out is how to use ICacheClient inside the App_Start file. It always never inits and I get an error. It works fine in other classes outside of App_Start. I'm calling it after the line...
container.Register<ICacheClient>(new MemoryCacheClient());
Where/How do I define public ICacheClient CacheClient { get; set; } in App_Start so I can cache my lookup in the RequestFilter?
Thanks very much.