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
- EntityContainerEmitter.cs
- SqlTransaction.cs
- AncillaryOps.cs
- UrlAuthFailedErrorFormatter.cs
- WaveHeader.cs
- BuildProvider.cs
- DesignerUtility.cs
- ReferenceEqualityComparer.cs
- ToolStripItemClickedEventArgs.cs
- StringHelper.cs
- UriWriter.cs
- ColumnResult.cs
- IResourceProvider.cs
- ChannelDispatcherCollection.cs
- XmlSchemaDatatype.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- TypedElement.cs
- HttpResponse.cs
- UserPreferenceChangedEventArgs.cs
- Rijndael.cs
- ConfigurationException.cs
- Unit.cs
- XamlRtfConverter.cs
- EntityDescriptor.cs
- ToolStripItemEventArgs.cs
- Exceptions.cs
- HwndStylusInputProvider.cs
- Operator.cs
- ToolStripSplitButton.cs
- LocationFactory.cs
- CompilerTypeWithParams.cs
- ReadWriteObjectLock.cs
- AlphaSortedEnumConverter.cs
- XmlDictionaryReaderQuotas.cs
- Context.cs
- CodeMemberField.cs
- peersecurityelement.cs
- HtmlShim.cs
- Rect.cs
- FixedHighlight.cs
- namescope.cs
- Directory.cs
- ConstructorArgumentAttribute.cs
- SafeThreadHandle.cs
- BrowserCapabilitiesCodeGenerator.cs
- FontWeights.cs
- DataPager.cs
- DependencyPropertyChangedEventArgs.cs
- XmlBinaryWriter.cs
- BitmapEffectRenderDataResource.cs
- EdmProviderManifest.cs
- TextFindEngine.cs
- SEHException.cs
- TextTreeDeleteContentUndoUnit.cs
- Tokenizer.cs
- ObjectReaderCompiler.cs
- ResourceWriter.cs
- DynamicEndpointElement.cs
- followingsibling.cs
- Converter.cs
- XmlDownloadManager.cs
- TemplatedAdorner.cs
- TdsValueSetter.cs
- MemberHolder.cs
- MethodBody.cs
- FramingChannels.cs
- ArgumentOutOfRangeException.cs
- cryptoapiTransform.cs
- VirtualPathData.cs
- RC2CryptoServiceProvider.cs
- StorageEntityTypeMapping.cs
- IsolationInterop.cs
- CheckBoxField.cs
- URLIdentityPermission.cs
- filewebrequest.cs
- DataControlLinkButton.cs
- EpmCustomContentWriterNodeData.cs
- GridViewSortEventArgs.cs
- Accessible.cs
- TraceProvider.cs
- OleDbPropertySetGuid.cs
- CacheDependency.cs
- EnumValidator.cs
- CapabilitiesState.cs
- SystemMulticastIPAddressInformation.cs
- DefaultAssemblyResolver.cs
- StackBuilderSink.cs
- DataGridViewCellParsingEventArgs.cs
- ValidateNames.cs
- ImageDrawing.cs
- HandlerFactoryWrapper.cs
- XmlNodeReader.cs
- SessionStateUtil.cs
- ListViewInsertEventArgs.cs
- ImageCreator.cs
- InputChannelAcceptor.cs
- MarginCollapsingState.cs
- FileDocument.cs
- TagNameToTypeMapper.cs
- XmlSchemaComplexContentRestriction.cs