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
- DbgCompiler.cs
- SeekStoryboard.cs
- ImageDesigner.cs
- SerialReceived.cs
- Convert.cs
- WhileDesigner.cs
- ClassHandlersStore.cs
- FaultHandlingFilter.cs
- Style.cs
- HtmlSelect.cs
- IsolationInterop.cs
- ObjectResult.cs
- WebBrowserBase.cs
- DependencyPropertyHelper.cs
- UnionCqlBlock.cs
- DelegatingConfigHost.cs
- ReceiveCompletedEventArgs.cs
- DefinitionUpdate.cs
- TabControl.cs
- DataSourceCacheDurationConverter.cs
- StickyNoteHelper.cs
- SurrogateSelector.cs
- XPathAncestorQuery.cs
- CodeConditionStatement.cs
- TabControlAutomationPeer.cs
- OrderablePartitioner.cs
- TextTreeFixupNode.cs
- XsdValidatingReader.cs
- DataGridViewRowStateChangedEventArgs.cs
- PostBackOptions.cs
- FileCodeGroup.cs
- BindingNavigator.cs
- ValuePatternIdentifiers.cs
- WmlImageAdapter.cs
- mansign.cs
- UInt16.cs
- DataSpaceManager.cs
- BasicExpandProvider.cs
- MultiDataTrigger.cs
- StyleXamlParser.cs
- CssStyleCollection.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- SoapEnumAttribute.cs
- TrackingLocation.cs
- CodeCatchClause.cs
- OuterGlowBitmapEffect.cs
- TrackBar.cs
- VectorAnimationBase.cs
- EmptyStringExpandableObjectConverter.cs
- SpeakCompletedEventArgs.cs
- FrameDimension.cs
- sqlpipe.cs
- LineGeometry.cs
- namescope.cs
- TabRenderer.cs
- JsonCollectionDataContract.cs
- Pens.cs
- DBParameter.cs
- Activity.cs
- Propagator.cs
- TextEditorMouse.cs
- WebConfigurationManager.cs
- SolidBrush.cs
- SmiContext.cs
- BufferedReadStream.cs
- NullableBoolConverter.cs
- SerialStream.cs
- Polyline.cs
- MetadataArtifactLoaderResource.cs
- SqlServices.cs
- ConsoleCancelEventArgs.cs
- RepeatBehaviorConverter.cs
- FileDetails.cs
- FormParameter.cs
- TreeNodeSelectionProcessor.cs
- Currency.cs
- NodeLabelEditEvent.cs
- FormViewPagerRow.cs
- RewritingPass.cs
- ReadOnlyObservableCollection.cs
- ExpressionBindingCollection.cs
- ServicePrincipalNameElement.cs
- ResourceExpressionBuilder.cs
- ByteKeyFrameCollection.cs
- InternalMappingException.cs
- ConnectionConsumerAttribute.cs
- AsyncOperation.cs
- TableChangeProcessor.cs
- XmlSchemaExternal.cs
- AutoSizeComboBox.cs
- DataGridRowHeader.cs
- ProjectionPruner.cs
- ControlDesigner.cs
- ErrorTableItemStyle.cs
- UriTemplateTable.cs
- TextHidden.cs
- KeyValuePairs.cs
- Variable.cs
- LinqDataSourceContextEventArgs.cs
- SecurityResources.cs