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
- SecuritySessionServerSettings.cs
- KeyProperty.cs
- XmlBinaryReaderSession.cs
- SynchronizedDispatch.cs
- ScriptingProfileServiceSection.cs
- DataBoundControlDesigner.cs
- SwitchExpression.cs
- EndpointDiscoveryElement.cs
- VerbConverter.cs
- KeysConverter.cs
- ContentType.cs
- ActivationServices.cs
- SimpleWorkerRequest.cs
- PageSettings.cs
- ImpersonationContext.cs
- Column.cs
- BindingCollection.cs
- DataKey.cs
- XmlCharCheckingReader.cs
- EmbeddedObject.cs
- StickyNoteHelper.cs
- ReferencedCollectionType.cs
- ControlTemplate.cs
- AttributeCollection.cs
- HandleValueEditor.cs
- LookupBindingPropertiesAttribute.cs
- MetaModel.cs
- CopyOnWriteList.cs
- RefreshPropertiesAttribute.cs
- FileResponseElement.cs
- Update.cs
- FixedBufferAttribute.cs
- WizardStepBase.cs
- PasswordTextNavigator.cs
- TreeNodeClickEventArgs.cs
- FontNamesConverter.cs
- Classification.cs
- EdmPropertyAttribute.cs
- TrackingDataItemValue.cs
- DefaultAsyncDataDispatcher.cs
- WebPartEditorOkVerb.cs
- TypeDescriptionProvider.cs
- BeginEvent.cs
- UiaCoreApi.cs
- IntellisenseTextBox.cs
- BookmarkNameHelper.cs
- ToolStripOverflowButton.cs
- CssTextWriter.cs
- WebBrowserNavigatedEventHandler.cs
- PolicyLevel.cs
- PersistenceTypeAttribute.cs
- InvokeHandlers.cs
- MarshalByRefObject.cs
- ProfileGroupSettings.cs
- TemplateInstanceAttribute.cs
- DataShape.cs
- WizardDesigner.cs
- OdbcPermission.cs
- CheckBox.cs
- PkcsUtils.cs
- FragmentNavigationEventArgs.cs
- ThreadStateException.cs
- MetaTableHelper.cs
- RawStylusInputCustomData.cs
- NameValuePermission.cs
- XsdValidatingReader.cs
- CompositeControl.cs
- PrintDialogException.cs
- TypeToArgumentTypeConverter.cs
- Barrier.cs
- DesignerTransaction.cs
- XmlNotation.cs
- UIElementAutomationPeer.cs
- HttpHandlerActionCollection.cs
- RelationshipWrapper.cs
- DesignerActionTextItem.cs
- StandardOleMarshalObject.cs
- MimeParameter.cs
- SystemException.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- DeferredElementTreeState.cs
- LicenseContext.cs
- TextTreeInsertUndoUnit.cs
- TextTreeTextElementNode.cs
- LinkTarget.cs
- PropertyCollection.cs
- WebOperationContext.cs
- NullableBoolConverter.cs
- TriggerBase.cs
- WebPartEditorApplyVerb.cs
- CustomValidator.cs
- wgx_render.cs
- InheritanceUI.cs
- CapabilitiesSection.cs
- Input.cs
- SerializationException.cs
- CounterSampleCalculator.cs
- SQLInt64Storage.cs
- SocketElement.cs
- TableRowGroup.cs