Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / FileDataSourceCache.cs / 1 / FileDataSourceCache.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System.Collections.Specialized; using System.Web.Caching; internal sealed class FileDataSourceCache : DataSourceCache { private StringCollection _fileDependencies; ////// Sets the list of files that the cache entry will be dependent on. /// These values are not stored in view state. /// public StringCollection FileDependencies { get { if (_fileDependencies == null) { _fileDependencies = new StringCollection(); } return _fileDependencies; } } ////// Saves data to the ASP.NET cache using the specified key. /// protected override void SaveDataToCacheInternal(string key, object data, CacheDependency dependency) { int fileCount = FileDependencies.Count; string[] filenames = new string[fileCount]; FileDependencies.CopyTo(filenames, 0); CacheDependency fileDependency = new CacheDependency(0, filenames); if (dependency != null) { // There was another dependency passed in, aggregate them AggregateCacheDependency aggregateDependency = new AggregateCacheDependency(); aggregateDependency.Add(fileDependency, dependency); dependency = aggregateDependency; } else { // No other dependencies, just the file one dependency = fileDependency; } base.SaveDataToCacheInternal(key, data, dependency); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SymbolResolver.cs
- TreeView.cs
- InvalidAsynchronousStateException.cs
- WebContentFormatHelper.cs
- DrawingDrawingContext.cs
- PersonalizationStateInfo.cs
- UTF7Encoding.cs
- BindingBase.cs
- Point3DCollection.cs
- XmlWhitespace.cs
- COMException.cs
- EntityChangedParams.cs
- TiffBitmapDecoder.cs
- SortableBindingList.cs
- EntitySqlException.cs
- ContentFileHelper.cs
- ComponentConverter.cs
- ToolStripTemplateNode.cs
- _NtlmClient.cs
- WpfGeneratedKnownTypes.cs
- RecommendedAsConfigurableAttribute.cs
- DurableInstanceManager.cs
- DataFormat.cs
- StringBuilder.cs
- FixedSOMLineRanges.cs
- SignerInfo.cs
- DataListItem.cs
- RegexCompilationInfo.cs
- PixelShader.cs
- ScrollBar.cs
- SettingsPropertyValueCollection.cs
- SupportsEventValidationAttribute.cs
- MeasureData.cs
- JulianCalendar.cs
- BinaryCommonClasses.cs
- DesignerActionItemCollection.cs
- CookielessHelper.cs
- WebBrowsableAttribute.cs
- LinearKeyFrames.cs
- ClientEventManager.cs
- ContainerParagraph.cs
- ClientBuildManager.cs
- DrawingCollection.cs
- RawAppCommandInputReport.cs
- AttributeProviderAttribute.cs
- SqlTriggerAttribute.cs
- UserControl.cs
- ExpressionsCollectionEditor.cs
- WindowsSysHeader.cs
- ObjectParameter.cs
- BindingList.cs
- MethodCallConverter.cs
- RawUIStateInputReport.cs
- DatagridviewDisplayedBandsData.cs
- FontFamily.cs
- ReadOnlyHierarchicalDataSourceView.cs
- GacUtil.cs
- Operator.cs
- MemberMemberBinding.cs
- AnimationStorage.cs
- OdbcCommandBuilder.cs
- InputMethodStateTypeInfo.cs
- XmlSortKeyAccumulator.cs
- TextWriter.cs
- NominalTypeEliminator.cs
- BrushConverter.cs
- ButtonChrome.cs
- ToolStripDropDownClosedEventArgs.cs
- ClientRolePrincipal.cs
- XmlTextWriter.cs
- CroppedBitmap.cs
- TypeConverterAttribute.cs
- HtmlTextArea.cs
- ObjectToModelValueConverter.cs
- ShapingWorkspace.cs
- ReadOnlyNameValueCollection.cs
- DragEvent.cs
- IdentityNotMappedException.cs
- HttpCachePolicyWrapper.cs
- ButtonFieldBase.cs
- SmtpMail.cs
- ClientScriptManager.cs
- CachedPathData.cs
- DynamicMetaObjectBinder.cs
- NodeInfo.cs
- RenderingBiasValidation.cs
- FormsAuthentication.cs
- PropertyGroupDescription.cs
- ExecutedRoutedEventArgs.cs
- UTF7Encoding.cs
- _NestedMultipleAsyncResult.cs
- XmlNodeReader.cs
- GridViewRowPresenterBase.cs
- SqlUdtInfo.cs
- CanonicalFormWriter.cs
- LicenseProviderAttribute.cs
- HybridWebProxyFinder.cs
- EnumerableCollectionView.cs
- MexNamedPipeBindingCollectionElement.cs
- CustomAttributeSerializer.cs