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
- JapaneseLunisolarCalendar.cs
- TdsParserSessionPool.cs
- TextBoxBase.cs
- ExtendedProperty.cs
- Int16KeyFrameCollection.cs
- CoreSwitches.cs
- DecoderReplacementFallback.cs
- ByteStream.cs
- ReferencedAssembly.cs
- SystemIPGlobalStatistics.cs
- TraceListeners.cs
- DocumentPageTextView.cs
- TextBoxBase.cs
- StateRuntime.cs
- CellQuery.cs
- CachingHintValidation.cs
- ImageListUtils.cs
- DelegateInArgument.cs
- PolicyManager.cs
- DbExpressionBuilder.cs
- LockedHandleGlyph.cs
- Calendar.cs
- PhysicalAddress.cs
- AndCondition.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- EntityViewGenerationConstants.cs
- GACMembershipCondition.cs
- BitmapSourceSafeMILHandle.cs
- TimeIntervalCollection.cs
- SQLString.cs
- BindingMemberInfo.cs
- WpfWebRequestHelper.cs
- SafeHandles.cs
- PageTheme.cs
- ExpressionUtilities.cs
- TreeIterators.cs
- Label.cs
- ControlBuilderAttribute.cs
- DBBindings.cs
- OutputScopeManager.cs
- Adorner.cs
- PerformanceCounterCategory.cs
- SHA1Cng.cs
- ProviderUtil.cs
- DecoderNLS.cs
- AutoScrollHelper.cs
- NotifyIcon.cs
- DictionaryTraceRecord.cs
- RenderData.cs
- PointAnimationClockResource.cs
- BoundingRectTracker.cs
- LinkLabelLinkClickedEvent.cs
- HostedElements.cs
- Type.cs
- HelpProvider.cs
- IdentityNotMappedException.cs
- RegexRunnerFactory.cs
- WaitForChangedResult.cs
- DelegateSerializationHolder.cs
- NotifyParentPropertyAttribute.cs
- SkipStoryboardToFill.cs
- PropertyInfoSet.cs
- BaseTemplateCodeDomTreeGenerator.cs
- MediaContext.cs
- FontWeights.cs
- RectangleGeometry.cs
- GlyphInfoList.cs
- Boolean.cs
- TypeInitializationException.cs
- DataKey.cs
- ProxyHwnd.cs
- BinaryObjectInfo.cs
- XpsDigitalSignature.cs
- WebSysDescriptionAttribute.cs
- Latin1Encoding.cs
- VerticalAlignConverter.cs
- EmptyEnumerable.cs
- DetailsViewCommandEventArgs.cs
- Dictionary.cs
- TextRangeEditTables.cs
- sapiproxy.cs
- NumericExpr.cs
- PictureBox.cs
- ExcludeFromCodeCoverageAttribute.cs
- DataServiceExpressionVisitor.cs
- DynamicRouteExpression.cs
- BuildDependencySet.cs
- ScriptReferenceBase.cs
- LocalValueEnumerator.cs
- HandlerBase.cs
- PropertyMetadata.cs
- LogicalExpressionEditor.cs
- MobileControl.cs
- Symbol.cs
- IApplicationTrustManager.cs
- ObjectTag.cs
- Int32AnimationBase.cs
- DbConnectionHelper.cs
- httpserverutility.cs
- AttachInfo.cs