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
- ToolStripPanel.cs
- IdleTimeoutMonitor.cs
- ImageButton.cs
- SimpleRecyclingCache.cs
- CodeSubDirectory.cs
- IPeerNeighbor.cs
- ParentQuery.cs
- SmiContextFactory.cs
- SafeHandles.cs
- FeatureSupport.cs
- CodeDirectionExpression.cs
- GenericEnumerator.cs
- ValidatorUtils.cs
- PrintDocument.cs
- BitmapEffectDrawing.cs
- TileBrush.cs
- XmlSchemaDocumentation.cs
- RouteValueExpressionBuilder.cs
- XmlIterators.cs
- NestPullup.cs
- DetailsViewCommandEventArgs.cs
- SystemIPv4InterfaceProperties.cs
- SHA512.cs
- HealthMonitoringSectionHelper.cs
- _SSPISessionCache.cs
- PlatformNotSupportedException.cs
- ToolStripGripRenderEventArgs.cs
- EmulateRecognizeCompletedEventArgs.cs
- X509Certificate2.cs
- NullableDecimalMinMaxAggregationOperator.cs
- MemoryMappedViewAccessor.cs
- UpdateCompiler.cs
- InputScope.cs
- OperatorExpressions.cs
- XmlText.cs
- ObservableCollection.cs
- InheritanceContextChangedEventManager.cs
- Enlistment.cs
- XomlCompilerHelpers.cs
- clipboard.cs
- DataGridViewCellConverter.cs
- XmlDataLoader.cs
- BitmapEffectDrawingContextState.cs
- SortQueryOperator.cs
- LineServices.cs
- PhonemeEventArgs.cs
- HtmlImage.cs
- SHA1.cs
- Properties.cs
- PackagePart.cs
- RuleSet.cs
- StretchValidation.cs
- DocumentSchemaValidator.cs
- httpserverutility.cs
- BoundColumn.cs
- ListBindingHelper.cs
- DefaultAutoFieldGenerator.cs
- ConfigurationStrings.cs
- HtmlInputRadioButton.cs
- WebPartManager.cs
- FSWPathEditor.cs
- ActivityDesigner.cs
- MatrixTransform.cs
- HttpCapabilitiesSectionHandler.cs
- ScriptManagerProxy.cs
- XmlSchemaCollection.cs
- FormatterServices.cs
- TemplateParser.cs
- Cursors.cs
- BodyWriter.cs
- SqlDependencyUtils.cs
- SQLBytesStorage.cs
- PathParser.cs
- ReferencedType.cs
- DocumentApplication.cs
- input.cs
- CreateUserWizard.cs
- CodeCompileUnit.cs
- EntityCollection.cs
- FieldMetadata.cs
- EncoderParameter.cs
- VectorCollection.cs
- SupportsEventValidationAttribute.cs
- HtmlTable.cs
- TwoPhaseCommit.cs
- StructuralObject.cs
- DynamicRendererThreadManager.cs
- WebEvents.cs
- ExpressionNormalizer.cs
- SimpleLine.cs
- activationcontext.cs
- EntityDesignerUtils.cs
- DrawingState.cs
- DbParameterCollection.cs
- HijriCalendar.cs
- SafeSystemMetrics.cs
- ReadOnlyCollection.cs
- HttpHandlerActionCollection.cs
- tooltip.cs
- GridViewColumnCollection.cs