Ejemplo n.º 1
0
 public OutputCachedContentShapeResult(string shapeType, Func <DriverResult> driverResultFactory, ICacheService cacheService, IOutputCachedPartsContext outputCachedPartsContext, ICacheKeyService cacheKeyService, ContentPart part, string cacheKey)
 {
     _cachedPartMetadata       = new CachedPartMetadata(cacheKeyService.BuildFullCacheKey(part, cacheKey));
     _shapeType                = shapeType;
     _driverResultFactory      = driverResultFactory;
     _cacheService             = cacheService;
     _outputCachedPartsContext = outputCachedPartsContext;
 }
 public void PutCachedPartMetadata(ContentPart part, CachedPartMetadata metadata)
 {
     CachedPartMetadata.Add(new KeyValuePair <string, CachedPartMetadata>(BuildCachedPartMetadataKey(part), metadata));
 }