Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / Providers / DataServicePagingProviderWrapper.cs / 1305376 / DataServicePagingProviderWrapper.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Wrapper for IDataServicePagingProvider discovery by service instance. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Providers { ///Wrapper for IDataServicePagingProvider interface discovery. internal sealed class DataServicePagingProviderWrapper { ///IDataServicePagingProvider interface for the service. private IDataServicePagingProvider pagingProvider; ///Service instance. private IDataService service; ///Was interface already requested. private bool checkedForIDataServicePagingProvider; ///Constructor. /// Service instance. public DataServicePagingProviderWrapper(IDataService serviceInstance) { this.service = serviceInstance; } ///Gives reference to IDataServicePagingProvider interface implemented by the service. public IDataServicePagingProvider PagingProviderInterface { get { if (!this.checkedForIDataServicePagingProvider) { this.pagingProvider = this.service.Provider.GetService(this.service); this.checkedForIDataServicePagingProvider = true; } return this.pagingProvider; } } /// Is custom paging enabled for the service for query processing. public bool IsCustomPagedForQuery { get { return this.PagingProviderInterface != null; } } ///Do we need to handle custom paging during serialization. public bool IsCustomPagedForSerialization { get { if (!this.checkedForIDataServicePagingProvider) { return false; } else { return this.pagingProvider != null; } } } ////// Dispose the pagingProvider provider instance /// internal void DisposeProvider() { if (this.pagingProvider != null) { WebUtil.Dispose(this.pagingProvider); this.pagingProvider = null; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TrustSection.cs
- WindowsSolidBrush.cs
- HideDisabledControlAdapter.cs
- ZoneMembershipCondition.cs
- PointCollectionValueSerializer.cs
- ThreadInterruptedException.cs
- StickyNote.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- KeyValueInternalCollection.cs
- TrackingAnnotationCollection.cs
- PostBackOptions.cs
- DBSqlParser.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- Point.cs
- QueryReaderSettings.cs
- CompressStream.cs
- TemplateNameScope.cs
- AsyncPostBackErrorEventArgs.cs
- Identity.cs
- ContentFileHelper.cs
- hresults.cs
- DbConnectionHelper.cs
- ProviderConnectionPointCollection.cs
- MimeWriter.cs
- ErrorEventArgs.cs
- Pair.cs
- WaitHandleCannotBeOpenedException.cs
- MultipleViewProviderWrapper.cs
- MappingSource.cs
- ProjectionPruner.cs
- StopStoryboard.cs
- SimpleBitVector32.cs
- SqlConnectionString.cs
- StateInitialization.cs
- AbstractExpressions.cs
- SamlAudienceRestrictionCondition.cs
- IdentityNotMappedException.cs
- ListBoxAutomationPeer.cs
- CompilationUtil.cs
- SchemaObjectWriter.cs
- XmlBindingWorker.cs
- AppDomainUnloadedException.cs
- InvalidCommandTreeException.cs
- DiscreteKeyFrames.cs
- SimpleHandlerBuildProvider.cs
- Int32RectValueSerializer.cs
- XhtmlBasicImageAdapter.cs
- DataRowView.cs
- MessageDecoder.cs
- OperatingSystem.cs
- __Filters.cs
- FloaterBaseParagraph.cs
- SpellerHighlightLayer.cs
- MonthChangedEventArgs.cs
- SymmetricAlgorithm.cs
- WorkflowIdleElement.cs
- SqlWorkflowInstanceStore.cs
- TransactionProtocol.cs
- AnimationLayer.cs
- PrivilegeNotHeldException.cs
- Soap11ServerProtocol.cs
- Padding.cs
- ExpandableObjectConverter.cs
- PaperSource.cs
- PropertyPathConverter.cs
- HtmlMeta.cs
- RootBrowserWindow.cs
- ContextQuery.cs
- _ChunkParse.cs
- URLIdentityPermission.cs
- CacheForPrimitiveTypes.cs
- EntityDesignerBuildProvider.cs
- GeometryCollection.cs
- ClientUrlResolverWrapper.cs
- _Rfc2616CacheValidators.cs
- ResourcePermissionBaseEntry.cs
- WindowsStatusBar.cs
- OpCopier.cs
- SchemaInfo.cs
- GraphicsState.cs
- ExtensionSurface.cs
- precedingquery.cs
- ObjectConverter.cs
- OdbcStatementHandle.cs
- Type.cs
- DataServiceQueryProvider.cs
- Emitter.cs
- DataView.cs
- FontStretch.cs
- CatalogPartDesigner.cs
- WebConfigurationFileMap.cs
- XamlHttpHandlerFactory.cs
- IntSecurity.cs
- SqlLiftWhereClauses.cs
- ClickablePoint.cs
- SiteMapNode.cs
- CopyNodeSetAction.cs
- DataContractSerializerFaultFormatter.cs
- Base64Stream.cs
- EnterpriseServicesHelper.cs