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
- ProfilePropertySettingsCollection.cs
- ExtendedProperty.cs
- TrackingStringDictionary.cs
- WebBrowserNavigatedEventHandler.cs
- PopupRoot.cs
- BulletChrome.cs
- UnconditionalPolicy.cs
- WebHttpSecurityElement.cs
- ArglessEventHandlerProxy.cs
- Currency.cs
- RowBinding.cs
- SQLDecimal.cs
- LicenseException.cs
- OraclePermission.cs
- storagemappingitemcollection.viewdictionary.cs
- ValuePatternIdentifiers.cs
- _ConnectionGroup.cs
- ViewStateModeByIdAttribute.cs
- SqlUtil.cs
- EngineSiteSapi.cs
- ColumnMapVisitor.cs
- IDQuery.cs
- RequestQueue.cs
- CodeDefaultValueExpression.cs
- WSFederationHttpBindingElement.cs
- DropShadowBitmapEffect.cs
- Hash.cs
- SecurityKeyUsage.cs
- SynchronizationValidator.cs
- Hex.cs
- VectorCollection.cs
- ProtectedConfiguration.cs
- UnauthorizedAccessException.cs
- QueryContinueDragEvent.cs
- StaticResourceExtension.cs
- BlurEffect.cs
- XPathDescendantIterator.cs
- SafeNativeMethods.cs
- GPRECTF.cs
- WebService.cs
- WindowsNonControl.cs
- CachedBitmap.cs
- ControlEvent.cs
- ContextStaticAttribute.cs
- InputEventArgs.cs
- DropSource.cs
- DropDownList.cs
- MatrixCamera.cs
- SystemInformation.cs
- SR.cs
- DataSourceHelper.cs
- HistoryEventArgs.cs
- Binding.cs
- ClientProxyGenerator.cs
- ConfigurationFileMap.cs
- complextypematerializer.cs
- LicenseProviderAttribute.cs
- SelectedDatesCollection.cs
- LoginStatusDesigner.cs
- PartialCachingAttribute.cs
- SwitchExpression.cs
- WebPartTransformerCollection.cs
- AutoGeneratedFieldProperties.cs
- XmlElement.cs
- MemoryStream.cs
- CodeIdentifiers.cs
- GenerateScriptTypeAttribute.cs
- SqlRewriteScalarSubqueries.cs
- ConnectionsZoneDesigner.cs
- ExpressionBuilderCollection.cs
- StartUpEventArgs.cs
- DebugInfo.cs
- __ConsoleStream.cs
- HttpRequestCacheValidator.cs
- MenuScrollingVisibilityConverter.cs
- MasterPageParser.cs
- WebZone.cs
- Decimal.cs
- PenContext.cs
- IriParsingElement.cs
- KeyMatchBuilder.cs
- Popup.cs
- AutomationFocusChangedEventArgs.cs
- SynchronizationValidator.cs
- SqlRecordBuffer.cs
- TcpAppDomainProtocolHandler.cs
- SqlDataRecord.cs
- shaperfactoryquerycachekey.cs
- PathFigure.cs
- FtpWebRequest.cs
- ConfigurationValues.cs
- GAC.cs
- SplitContainer.cs
- CredentialCache.cs
- SamlSubjectStatement.cs
- ConvertersCollection.cs
- ServiceContractListItem.cs
- FigureHelper.cs
- SendKeys.cs
- AttachedPropertyInfo.cs