コード例 #1
0
        static ApiCacheabilityAttribute()
        {
            var configStringForDownstream = WebConfig.Get <string>("Cacheability:Timeouts:Downstream");
            var configStringForEdge       = WebConfig.Get <string>("Cacheability:Timeouts:Edge");

            CacheConfig.ParseTimeToLives(TimeToLivesForDownstream, configStringForDownstream);
            CacheConfig.ParseTimeToLives(TimeToLivesForEdge, configStringForEdge);
            CacheConfig.Validate(TimeToLivesForDownstream, TimeToLivesForEdge);
        }