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
- Attributes.cs
- xsdvalidator.cs
- ClientApiGenerator.cs
- embossbitmapeffect.cs
- ButtonFlatAdapter.cs
- EditorZoneBase.cs
- CodeEntryPointMethod.cs
- BindingBase.cs
- StyleXamlParser.cs
- WizardSideBarListControlItem.cs
- WebPartZone.cs
- IndexedGlyphRun.cs
- RoleManagerSection.cs
- InternalConfigHost.cs
- TextRangeAdaptor.cs
- WindowsToolbarAsMenu.cs
- ProgressBarHighlightConverter.cs
- VisualTreeHelper.cs
- BamlVersionHeader.cs
- XdrBuilder.cs
- StdRegProviderWrapper.cs
- CodeTypeMember.cs
- IntersectQueryOperator.cs
- TypedColumnHandler.cs
- CaseInsensitiveComparer.cs
- NameValueFileSectionHandler.cs
- Rotation3DKeyFrameCollection.cs
- SiteMapDataSourceView.cs
- VisualBasicDesignerHelper.cs
- Attribute.cs
- XPathSelectionIterator.cs
- EntityDataSourceSelectedEventArgs.cs
- DbProviderSpecificTypePropertyAttribute.cs
- JumpItem.cs
- HotSpot.cs
- TransformationRules.cs
- Geometry.cs
- InfoCardTraceRecord.cs
- ChangeProcessor.cs
- WebPartActionVerb.cs
- CookieProtection.cs
- XamlFxTrace.cs
- ObjectTag.cs
- UpnEndpointIdentity.cs
- HebrewNumber.cs
- EditorAttribute.cs
- DecimalAnimationBase.cs
- DiscoveryDocumentReference.cs
- ByteStream.cs
- PaintValueEventArgs.cs
- AsyncResult.cs
- LocationSectionRecord.cs
- XmlMapping.cs
- SqlError.cs
- Bits.cs
- EntityTypeEmitter.cs
- AutomationPatternInfo.cs
- DbgCompiler.cs
- SoapSchemaExporter.cs
- OneOfTypeConst.cs
- AccessorTable.cs
- Propagator.ExtentPlaceholderCreator.cs
- IPGlobalProperties.cs
- CompilationRelaxations.cs
- Types.cs
- EffectiveValueEntry.cs
- CharConverter.cs
- SplitterEvent.cs
- Dump.cs
- SpotLight.cs
- XamlVector3DCollectionSerializer.cs
- EventSetter.cs
- IgnoreSectionHandler.cs
- XmlValidatingReader.cs
- SizeChangedInfo.cs
- DetailsViewDeleteEventArgs.cs
- ReachUIElementCollectionSerializer.cs
- StructuredCompositeActivityDesigner.cs
- NativeCppClassAttribute.cs
- Emitter.cs
- WebPartExportVerb.cs
- Contracts.cs
- UpdateException.cs
- QilPatternVisitor.cs
- NetworkInformationPermission.cs
- SecurityStandardsManager.cs
- StreamGeometryContext.cs
- RepeaterCommandEventArgs.cs
- PropertyTabAttribute.cs
- ProcessInfo.cs
- PingReply.cs
- RoutingUtilities.cs
- SolidBrush.cs
- SoapEnumAttribute.cs
- ActivityWithResult.cs
- ClientRuntimeConfig.cs
- ScriptingAuthenticationServiceSection.cs
- ActivityBuilderXamlWriter.cs
- _AutoWebProxyScriptEngine.cs
- ConfigPathUtility.cs