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
- PromptBuilder.cs
- FragmentNavigationEventArgs.cs
- RequestNavigateEventArgs.cs
- PropertyKey.cs
- Effect.cs
- DynamicValidatorEventArgs.cs
- OutputCacheModule.cs
- FileAuthorizationModule.cs
- updatecommandorderer.cs
- DragEvent.cs
- ImportCatalogPart.cs
- FieldToken.cs
- CommandHelpers.cs
- IISUnsafeMethods.cs
- _TimerThread.cs
- EventLogPermission.cs
- ViewService.cs
- PolyBezierSegment.cs
- PageStatePersister.cs
- MaskedTextProvider.cs
- FillRuleValidation.cs
- TraceData.cs
- BaseTemplateBuildProvider.cs
- xmlsaver.cs
- TraceUtils.cs
- ClusterSafeNativeMethods.cs
- CustomError.cs
- Comparer.cs
- TransactionTraceIdentifier.cs
- HMACRIPEMD160.cs
- NamespaceExpr.cs
- ControlType.cs
- FramingDecoders.cs
- UriScheme.cs
- StackBuilderSink.cs
- StringConcat.cs
- HttpCookieCollection.cs
- HotSpotCollectionEditor.cs
- XMLSyntaxException.cs
- iisPickupDirectory.cs
- Form.cs
- RepeaterItemEventArgs.cs
- ExpressionHelper.cs
- UICuesEvent.cs
- CellIdBoolean.cs
- CellConstant.cs
- NullReferenceException.cs
- QilLoop.cs
- TreeNodeStyle.cs
- Matrix.cs
- DbSetClause.cs
- GAC.cs
- COSERVERINFO.cs
- ExpressionVisitorHelpers.cs
- ClockController.cs
- CacheChildrenQuery.cs
- FilePrompt.cs
- path.cs
- CustomTrackingQuery.cs
- SqlCacheDependencySection.cs
- EmptyStringExpandableObjectConverter.cs
- RedirectionProxy.cs
- HierarchicalDataBoundControl.cs
- FigureParaClient.cs
- AssemblyCache.cs
- ExtendedPropertiesHandler.cs
- TextEditorTyping.cs
- MetafileHeader.cs
- ReferencedAssemblyResolver.cs
- IxmlLineInfo.cs
- HealthMonitoringSection.cs
- MarginsConverter.cs
- QuotedPrintableStream.cs
- BasePattern.cs
- FormsAuthenticationModule.cs
- coordinatorscratchpad.cs
- JsonCollectionDataContract.cs
- ZoneLinkButton.cs
- Menu.cs
- ElementAction.cs
- SelectionList.cs
- InfoCardBaseException.cs
- XmlSchemaExternal.cs
- XmlConverter.cs
- PersistenceTypeAttribute.cs
- DateTime.cs
- TimeIntervalCollection.cs
- XmlQueryStaticData.cs
- SelectionRange.cs
- WinEventWrap.cs
- StateDesigner.Helpers.cs
- ListViewDeleteEventArgs.cs
- CompilerErrorCollection.cs
- TemplateBuilder.cs
- EntityDesignerBuildProvider.cs
- ImageCreator.cs
- ModelItemExtensions.cs
- RelationshipConverter.cs
- AliasedSlot.cs
- PagesSection.cs