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
- safex509handles.cs
- RelationshipNavigation.cs
- EntitySqlQueryCacheKey.cs
- StatusBarPanel.cs
- TableItemPattern.cs
- SmtpMail.cs
- MessagingDescriptionAttribute.cs
- FixedSOMSemanticBox.cs
- HostingEnvironment.cs
- ListSourceHelper.cs
- ArrangedElementCollection.cs
- CloudCollection.cs
- COM2EnumConverter.cs
- activationcontext.cs
- LongValidatorAttribute.cs
- CompositionAdorner.cs
- CommandField.cs
- BufferBuilder.cs
- WindowsHyperlink.cs
- KoreanLunisolarCalendar.cs
- ClientEndpointLoader.cs
- ChainOfDependencies.cs
- MultipleViewPattern.cs
- DummyDataSource.cs
- TraceUtils.cs
- TypeDescriptor.cs
- ImportException.cs
- MarshalDirectiveException.cs
- ReplyChannel.cs
- NullableDecimalSumAggregationOperator.cs
- CodeExpressionCollection.cs
- LinqDataSourceDeleteEventArgs.cs
- CommandValueSerializer.cs
- Menu.cs
- DebugHandleTracker.cs
- UncommonField.cs
- AVElementHelper.cs
- StaticExtension.cs
- NativeMethods.cs
- Stroke2.cs
- util.cs
- PrePrepareMethodAttribute.cs
- MenuRendererStandards.cs
- MethodAccessException.cs
- MessagingDescriptionAttribute.cs
- StateInitialization.cs
- PeerInvitationResponse.cs
- TerminateDesigner.cs
- RemotingAttributes.cs
- DesignerSelectionListAdapter.cs
- SmuggledIUnknown.cs
- ADConnectionHelper.cs
- ClientScriptManager.cs
- ResourceDictionary.cs
- UIElement3D.cs
- Enumerable.cs
- ExpandoObject.cs
- NetDataContractSerializer.cs
- WorkflowDefinitionDispenser.cs
- OutputScope.cs
- DataControlField.cs
- RenderCapability.cs
- PathFigureCollection.cs
- DrawingImage.cs
- TripleDESCryptoServiceProvider.cs
- DeviceSpecificChoiceCollection.cs
- SaveWorkflowAsyncResult.cs
- LocalFileSettingsProvider.cs
- PathGradientBrush.cs
- MissingFieldException.cs
- ModelVisual3D.cs
- Permission.cs
- QuestionEventArgs.cs
- FormViewAutoFormat.cs
- RecognizerInfo.cs
- ProfileParameter.cs
- MarkupCompiler.cs
- DetailsViewModeEventArgs.cs
- Pair.cs
- InternalCache.cs
- DiagnosticsConfiguration.cs
- MetadataUtilsSmi.cs
- DynamicResourceExtensionConverter.cs
- VectorCollection.cs
- XmlEncoding.cs
- SHA1Cng.cs
- ExpressionVisitorHelpers.cs
- TextDecorations.cs
- TransformPatternIdentifiers.cs
- MsmqIntegrationChannelFactory.cs
- PersistChildrenAttribute.cs
- IndexedGlyphRun.cs
- XmlUrlResolver.cs
- ObjRef.cs
- DataRowComparer.cs
- XamlWriter.cs
- ArraySubsetEnumerator.cs
- XpsS0ValidatingLoader.cs
- ExtensionSimplifierMarkupObject.cs
- SafeBitVector32.cs