OutputCacheEntry.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Cache / OutputCacheEntry.cs / 1305376 / OutputCacheEntry.cs

                            using System; 
using System.Collections.Generic;
using System.Security.Permissions;
using System.Web;
 
namespace System.Web.Caching {
    [Serializable] 
    internal class OutputCacheEntry: IOutputCacheEntry { 
        // fields that hold metadata for the entry
        private Guid                      _cachedVaryId; 
        private HttpCachePolicySettings   _settings;
        private string                    _kernelCacheUrl;
        private string                    _dependenciesKey;
        private string[]                  _dependencies; // file dependencies 

        //response fields 
        private int                       _statusCode; 
        private String                    _statusDescription;
        private List       _headerElements; 
        private List     _responseElements;

        internal Guid                    CachedVaryId      { get { return _cachedVaryId; } }
        internal HttpCachePolicySettings Settings          { get { return _settings; } } 
        internal string                  KernelCacheUrl    { get { return _kernelCacheUrl; } }
        internal string                  DependenciesKey   { get { return _dependenciesKey; } } 
        internal string[]                Dependencies      { get { return _dependencies; } } 
        internal int                     StatusCode        { get { return _statusCode; } }
        internal string                  StatusDescription { get { return _statusDescription; } } 

        public   List     HeaderElements    { get { return _headerElements; }
                                                             set { _headerElements = value; } }
 
        public   List   ResponseElements  { get { return _responseElements; }
                                                             set { _responseElements = value; } } 
 
        private OutputCacheEntry() {
            // hide default constructor 
        }

        internal OutputCacheEntry(Guid cachedVaryId,
                                  HttpCachePolicySettings settings, 
                                  string kernelCacheUrl,
                                  string dependenciesKey, 
                                  string[] dependencies, 
                                  int statusCode,
                                  string statusDescription, 
                                  List headerElements,
                                  List responseElements) {
            _cachedVaryId = cachedVaryId;
            _settings = settings; 
            _kernelCacheUrl = kernelCacheUrl;
            _dependenciesKey = dependenciesKey; 
            _dependencies = dependencies; 
            _statusCode = statusCode;
            _statusDescription = statusDescription; 
            _headerElements = headerElements;
            _responseElements = responseElements;
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK