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
- EntityDataSourceWrapper.cs
- MarkupCompiler.cs
- InstanceHandleConflictException.cs
- cookiecollection.cs
- UnauthorizedAccessException.cs
- TextEditorTables.cs
- SamlSecurityToken.cs
- SoapSchemaMember.cs
- BooleanConverter.cs
- _OSSOCK.cs
- MiniAssembly.cs
- OracleRowUpdatingEventArgs.cs
- ActiveXHelper.cs
- SimpleApplicationHost.cs
- ExternalCalls.cs
- DataStreamFromComStream.cs
- ModuleConfigurationInfo.cs
- MessageSecurityOverMsmqElement.cs
- ProviderConnectionPoint.cs
- LinearKeyFrames.cs
- RijndaelManaged.cs
- DecimalStorage.cs
- SwitchLevelAttribute.cs
- DataGridViewRowStateChangedEventArgs.cs
- PrintDialog.cs
- DoubleLinkList.cs
- AssemblySettingAttributes.cs
- ModulesEntry.cs
- HMAC.cs
- ObjectItemAssemblyLoader.cs
- SchemeSettingElement.cs
- PartialClassGenerationTask.cs
- Int16Storage.cs
- PackageProperties.cs
- ZipIOModeEnforcingStream.cs
- RectangleF.cs
- SerializerWriterEventHandlers.cs
- TagNameToTypeMapper.cs
- NotifyInputEventArgs.cs
- CmsInterop.cs
- SessionSwitchEventArgs.cs
- MissingSatelliteAssemblyException.cs
- XmlQuerySequence.cs
- WebPartEditorOkVerb.cs
- QueryExtender.cs
- GuidelineSet.cs
- HiddenFieldPageStatePersister.cs
- ClientApiGenerator.cs
- LinkGrep.cs
- XmlUtf8RawTextWriter.cs
- MessageDecoder.cs
- InheritanceUI.cs
- OptimalBreakSession.cs
- LicenseException.cs
- ExpressionBuilderContext.cs
- WebContext.cs
- ToolboxItem.cs
- CustomAttribute.cs
- RoleGroup.cs
- FrameworkPropertyMetadata.cs
- ErrorFormatter.cs
- AuthenticationService.cs
- StringTraceRecord.cs
- ModelVisual3D.cs
- RectangleHotSpot.cs
- WsatProxy.cs
- CodeTypeReferenceExpression.cs
- ServiceAuthorizationElement.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- HtmlHead.cs
- MissingMethodException.cs
- FontUnitConverter.cs
- CollectionContainer.cs
- TaskCanceledException.cs
- SinglePhaseEnlistment.cs
- EncryptedKeyIdentifierClause.cs
- EnvelopedSignatureTransform.cs
- EventLogSession.cs
- GuidelineSet.cs
- SqlCacheDependencySection.cs
- MetadataPropertyAttribute.cs
- DateTimeConstantAttribute.cs
- ColumnCollection.cs
- _OSSOCK.cs
- PixelFormat.cs
- AppearanceEditorPart.cs
- WaitHandle.cs
- NavigationProperty.cs
- BaseServiceProvider.cs
- ControlValuePropertyAttribute.cs
- HorizontalAlignConverter.cs
- DBCommandBuilder.cs
- EDesignUtil.cs
- XmlSchemaImport.cs
- ConfigXmlAttribute.cs
- Message.cs
- TextPenaltyModule.cs
- InstanceCreationEditor.cs
- DropDownButton.cs
- webclient.cs