Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Activities / System / ServiceModel / Activities / Configuration / FactorySettingsElement.cs / 1305376 / FactorySettingsElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Activities.Configuration { using System.Runtime; using System.Configuration; using System.ComponentModel; using System.Globalization; using System.ServiceModel.Configuration; using System.ServiceModel.Activities.Description; public sealed class FactorySettingsElement : ConfigurationElement { ConfigurationPropertyCollection properties; public FactorySettingsElement() { } [ConfigurationProperty(ConfigurationStrings.IdleTimeout, DefaultValue = ChannelCacheDefaults.DefaultIdleTimeoutString)] [TypeConverter(typeof(TimeSpanOrInfiniteConverter))] [ServiceModelTimeSpanValidator(MinValueString = ConfigurationStrings.TimeSpanZero)] public TimeSpan IdleTimeout { get { return (TimeSpan)base[ConfigurationStrings.IdleTimeout]; } set { base[ConfigurationStrings.IdleTimeout] = value; } } [ConfigurationProperty(ConfigurationStrings.LeaseTimeout, DefaultValue = ChannelCacheDefaults.DefaultFactoryLeaseTimeoutString)] [TypeConverter(typeof(TimeSpanOrInfiniteConverter))] [ServiceModelTimeSpanValidator(MinValueString = ConfigurationStrings.TimeSpanZero)] public TimeSpan LeaseTimeout { get { return (TimeSpan)base[ConfigurationStrings.LeaseTimeout]; } set { base[ConfigurationStrings.LeaseTimeout] = value; } } [ConfigurationProperty(ConfigurationStrings.MaxItemsInCache, DefaultValue = ChannelCacheDefaults.DefaultMaxItemsPerCacheString)] [IntegerValidator(MinValue = 0)] public int MaxItemsInCache { get { return (int)base[ConfigurationStrings.MaxItemsInCache]; } set { base[ConfigurationStrings.MaxItemsInCache] = value; } } protected override ConfigurationPropertyCollection Properties { get { if (this.properties == null) { ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); properties.Add(new ConfigurationProperty(ConfigurationStrings.MaxItemsInCache, typeof(System.Int32), ChannelCacheDefaults.DefaultMaxItemsPerCache, null, new System.Configuration.IntegerValidator(1, 2147483647, false), System.Configuration.ConfigurationPropertyOptions.None)); properties.Add(new ConfigurationProperty(ConfigurationStrings.IdleTimeout, typeof(System.TimeSpan), ChannelCacheDefaults.DefaultIdleTimeout, new System.Runtime.TimeSpanOrInfiniteConverter(), new System.Runtime.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); properties.Add(new ConfigurationProperty(ConfigurationStrings.LeaseTimeout, typeof(System.TimeSpan), ChannelCacheDefaults.DefaultChannelLeaseTimeoutString, new System.Runtime.TimeSpanOrInfiniteConverter(), new System.Runtime.TimeSpanOrInfiniteValidator(System.TimeSpan.Parse("00:00:00", CultureInfo.InvariantCulture), System.TimeSpan.Parse("24.20:31:23.6470000", CultureInfo.InvariantCulture)), System.Configuration.ConfigurationPropertyOptions.None)); this.properties = properties; } return this.properties; } } } } // 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
- Header.cs
- BoolLiteral.cs
- CodeChecksumPragma.cs
- XPathAncestorIterator.cs
- SchemaMapping.cs
- ServerIdentity.cs
- UriExt.cs
- WindowsListViewSubItem.cs
- MetadataItemSerializer.cs
- AppModelKnownContentFactory.cs
- Expression.cs
- GeneralTransform2DTo3DTo2D.cs
- RayMeshGeometry3DHitTestResult.cs
- ConfigurationPropertyAttribute.cs
- ScriptingWebServicesSectionGroup.cs
- EUCJPEncoding.cs
- nulltextcontainer.cs
- TransformerConfigurationWizardBase.cs
- ResourceExpressionBuilder.cs
- BuildResult.cs
- ContentPresenter.cs
- ManipulationCompletedEventArgs.cs
- bindurihelper.cs
- WebFormsRootDesigner.cs
- BufferedGraphics.cs
- ParallelEnumerable.cs
- DataSetFieldSchema.cs
- IndexerReference.cs
- FixedSOMLineCollection.cs
- RuleProcessor.cs
- FSWPathEditor.cs
- PeerNearMe.cs
- RawStylusActions.cs
- ClientScriptManagerWrapper.cs
- OptimizerPatterns.cs
- HScrollBar.cs
- SqlDataSourceQueryEditor.cs
- ReadOnlyAttribute.cs
- AssociationSetMetadata.cs
- ZoomComboBox.cs
- ClientCultureInfo.cs
- CatalogPart.cs
- ControlCachePolicy.cs
- Line.cs
- ManualResetEvent.cs
- NamespaceDisplayAutomationPeer.cs
- XPathPatternBuilder.cs
- SchemaNames.cs
- SizeAnimation.cs
- SerializationFieldInfo.cs
- PersonalizationEntry.cs
- ActiveXContainer.cs
- ConnectionStringsExpressionBuilder.cs
- RootBuilder.cs
- DataControlPagerLinkButton.cs
- LogReservationCollection.cs
- ReachNamespaceInfo.cs
- XmlQueryTypeFactory.cs
- Array.cs
- SecurityElement.cs
- LightweightEntityWrapper.cs
- Number.cs
- TraceSwitch.cs
- ModifyActivitiesPropertyDescriptor.cs
- ReflectionServiceProvider.cs
- DrawingAttributes.cs
- WebPartCatalogAddVerb.cs
- TableDetailsRow.cs
- storagemappingitemcollection.viewdictionary.cs
- ConfigurationSectionCollection.cs
- OutputCacheProfile.cs
- MultiBindingExpression.cs
- WebPartExportVerb.cs
- RoleService.cs
- SplitContainer.cs
- HtmlInputControl.cs
- AnnotationService.cs
- UriTemplateEquivalenceComparer.cs
- WSHttpBindingElement.cs
- RandomDelaySendsAsyncResult.cs
- HostProtectionException.cs
- TreeViewEvent.cs
- TransactionContext.cs
- MDIWindowDialog.cs
- RuntimeArgumentHandle.cs
- DiscoveryClientDocuments.cs
- SystemIPGlobalProperties.cs
- SHA256.cs
- PeerNameResolver.cs
- SerializationObjectManager.cs
- DaylightTime.cs
- PropertyTabChangedEvent.cs
- HttpContextWrapper.cs
- ParamArrayAttribute.cs
- DataContractJsonSerializer.cs
- TargetException.cs
- SHA1Cng.cs
- ViewGenResults.cs
- GridLengthConverter.cs
- GridViewDeletedEventArgs.cs