Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Activities / System / ServiceModel / Activities / ChannelCacheSettings.cs / 1305376 / ChannelCacheSettings.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Activities { using System.Runtime; using System.ServiceModel; using System.ServiceModel.Channels; public class ChannelCacheSettings { TimeSpan idleTimeout; TimeSpan leaseTimeout; int maxItemsInCache; internal static ChannelCacheSettings EmptyCacheSettings = new ChannelCacheSettings { MaxItemsInCache = 0 }; public ChannelCacheSettings() { this.idleTimeout = ChannelCacheDefaults.DefaultIdleTimeout; this.leaseTimeout = ChannelCacheDefaults.DefaultLeaseTimeout; this.maxItemsInCache = ChannelCacheDefaults.DefaultMaxItemsPerCache; } [Fx.Tag.KnownXamlExternal] public TimeSpan IdleTimeout { get { return this.idleTimeout; } set { TimeoutHelper.ThrowIfNegativeArgument(value); if (TimeoutHelper.IsTooLarge(value)) { throw FxTrace.Exception.ArgumentOutOfRange("IdleTimeout", value, SR.ValueTooLarge("IdleTimeout")); } this.idleTimeout = value; } } [Fx.Tag.KnownXamlExternal] public TimeSpan LeaseTimeout { get { return leaseTimeout; } set { TimeoutHelper.ThrowIfNegativeArgument(value); if (TimeoutHelper.IsTooLarge(value)) { throw FxTrace.Exception.ArgumentOutOfRange("LeaseTimeout", value, SR.ValueTooLarge("LeaseTimeout")); } this.leaseTimeout = value; } } public int MaxItemsInCache { get { return this.maxItemsInCache; } set { if (value < 0) { throw FxTrace.Exception.ArgumentOutOfRange("MaxItemsInCache", value, SR.ValueCannotBeNegative("MaxItemsInCache")); } this.maxItemsInCache = value; } } } } // 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
- CryptoStream.cs
- Win32Exception.cs
- GridPattern.cs
- DrawListViewItemEventArgs.cs
- SymbolTable.cs
- BaseTemplateCodeDomTreeGenerator.cs
- AttachedPropertyMethodSelector.cs
- EventRoute.cs
- TableLayoutCellPaintEventArgs.cs
- HttpBrowserCapabilitiesBase.cs
- DecimalFormatter.cs
- CalendarAutoFormatDialog.cs
- ConversionContext.cs
- Nullable.cs
- Transaction.cs
- XmlDataImplementation.cs
- TextTreeInsertUndoUnit.cs
- SqlOuterApplyReducer.cs
- MultiAsyncResult.cs
- HttpException.cs
- SerialReceived.cs
- CodeTypeReference.cs
- InsufficientMemoryException.cs
- KeyInstance.cs
- NullRuntimeConfig.cs
- BoolExpressionVisitors.cs
- RequestTimeoutManager.cs
- TypeHelpers.cs
- Bits.cs
- BooleanConverter.cs
- InvalidDataException.cs
- DATA_BLOB.cs
- TemplateLookupAction.cs
- TypedTableHandler.cs
- LiteralControl.cs
- IDictionary.cs
- DesignTimeTemplateParser.cs
- InheritanceContextHelper.cs
- LookupNode.cs
- DelegateBodyWriter.cs
- MediaTimeline.cs
- QilXmlReader.cs
- ConfigurationStrings.cs
- ThousandthOfEmRealDoubles.cs
- DeferredElementTreeState.cs
- MultilineStringConverter.cs
- EntityEntry.cs
- TreeViewImageIndexConverter.cs
- DictionaryBase.cs
- DateTimeOffsetAdapter.cs
- WebSysDefaultValueAttribute.cs
- SigningCredentials.cs
- InplaceBitmapMetadataWriter.cs
- MultiPartWriter.cs
- PKCS1MaskGenerationMethod.cs
- _ListenerAsyncResult.cs
- MenuItemStyleCollection.cs
- EntityDesignerUtils.cs
- NativeObjectSecurity.cs
- ListViewAutomationPeer.cs
- XPathNodePointer.cs
- SettingsProviderCollection.cs
- MetadataCollection.cs
- EpmContentSerializerBase.cs
- QueryException.cs
- MemberHolder.cs
- MetadataCache.cs
- Variable.cs
- ProcessRequestArgs.cs
- XmlNamespaceDeclarationsAttribute.cs
- SoapRpcServiceAttribute.cs
- TextDocumentView.cs
- PropertyMap.cs
- WindowsTab.cs
- UrlMapping.cs
- ResXBuildProvider.cs
- StorageMappingItemLoader.cs
- LineServices.cs
- DataControlFieldHeaderCell.cs
- UserInitiatedNavigationPermission.cs
- HttpValueCollection.cs
- NegotiationTokenAuthenticatorStateCache.cs
- SqlError.cs
- HandlerBase.cs
- AnonymousIdentificationSection.cs
- SafeLibraryHandle.cs
- FixedPageProcessor.cs
- WasHttpModulesInstallComponent.cs
- StringToken.cs
- OutputWindow.cs
- EditingScopeUndoUnit.cs
- ValidatedControlConverter.cs
- CompilerTypeWithParams.cs
- CodeDomConfigurationHandler.cs
- QilXmlReader.cs
- BufferModesCollection.cs
- EntitySetDataBindingList.cs
- DiscoveryClientChannelBase.cs
- DeploymentSection.cs
- OleDbRowUpdatedEvent.cs