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
- AssemblyAssociatedContentFileAttribute.cs
- EdmFunction.cs
- SqlCommand.cs
- Int32AnimationBase.cs
- HostedNamedPipeTransportManager.cs
- EditorBrowsableAttribute.cs
- AuthenticateEventArgs.cs
- CompressEmulationStream.cs
- MasterPage.cs
- Number.cs
- AggregationMinMaxHelpers.cs
- FtpWebResponse.cs
- EpmContentDeSerializer.cs
- ISAPIWorkerRequest.cs
- _SecureChannel.cs
- sqlmetadatafactory.cs
- TargetConverter.cs
- InteropBitmapSource.cs
- PasswordBox.cs
- EFTableProvider.cs
- ControlIdConverter.cs
- Slider.cs
- TcpSocketManager.cs
- SelectQueryOperator.cs
- AuthenticationModuleElement.cs
- PingOptions.cs
- X509CertificateStore.cs
- XmlWriterSettings.cs
- XsltCompileContext.cs
- Nullable.cs
- ParameterToken.cs
- FormParameter.cs
- DataControlHelper.cs
- ReferencedAssemblyResolver.cs
- ButtonStandardAdapter.cs
- RequestCachePolicy.cs
- RewritingProcessor.cs
- DefaultTraceListener.cs
- RuleInfoComparer.cs
- PartialCachingAttribute.cs
- Debug.cs
- SHA512Cng.cs
- AxHost.cs
- AttributeData.cs
- _emptywebproxy.cs
- SchemaExporter.cs
- ImpersonateTokenRef.cs
- ColumnReorderedEventArgs.cs
- NavigatorInvalidBodyAccessException.cs
- Validator.cs
- WorkflowView.cs
- CultureSpecificStringDictionary.cs
- CollectionViewGroup.cs
- BitmapEffectRenderDataResource.cs
- HttpDictionary.cs
- ApplicationGesture.cs
- __FastResourceComparer.cs
- Parameter.cs
- ToolStripActionList.cs
- TypeResolvingOptions.cs
- CodeAssignStatement.cs
- LinqDataSourceSelectEventArgs.cs
- ImageAnimator.cs
- DispatchChannelSink.cs
- MemoryFailPoint.cs
- SqlServer2KCompatibilityAnnotation.cs
- Rules.cs
- VolatileResourceManager.cs
- Emitter.cs
- EntityException.cs
- HtmlLink.cs
- ComboBoxDesigner.cs
- CollectionViewSource.cs
- AsyncSerializedWorker.cs
- LazyInitializer.cs
- PolicyException.cs
- invalidudtexception.cs
- WindowsClientCredential.cs
- ServiceDescriptionReflector.cs
- SudsParser.cs
- XmlAttributeAttribute.cs
- CodeAttributeArgumentCollection.cs
- HttpModuleCollection.cs
- CacheChildrenQuery.cs
- PersonalizationStateQuery.cs
- Query.cs
- diagnosticsswitches.cs
- FlowPanelDesigner.cs
- SolidBrush.cs
- ContextQuery.cs
- Regex.cs
- Span.cs
- TableRow.cs
- CodeRemoveEventStatement.cs
- TypeBrowser.xaml.cs
- FlowDocumentPaginator.cs
- ClientSponsor.cs
- PointCollection.cs
- RepeatButton.cs
- ServiceReference.cs