Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / RunTime / Configuration / WorkflowRuntimeSection.cs / 1305376 / WorkflowRuntimeSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Configuration; using System.Collections.Specialized; using System.Workflow.Runtime; namespace System.Workflow.Runtime.Configuration { ///Configuration settings for the WorkflowRuntime ////// /// Services that are automatically instantiated must implement one of the /// following constructors: /// /// public MyService(); /// public MyService(NameValueCollection); /// public MyService(WorkflowRuntime); /// public MyService(WorkflowRuntime, NameValueCollection); ///
////// /// /// public class WorkflowRuntimeSection : ConfigurationSection { private const string _services = "Services"; private const string commonParametersSectionName = "CommonParameters"; private const string _name = "Name"; private const string _validateOnCreate = "ValidateOnCreate"; private const string _enablePerfCounters = "EnablePerformanceCounters"; private const string _definitionCacheCapacity = "WorkflowDefinitionCacheCapacity"; internal const string DefaultSectionName = "WorkflowRuntime"; /// The capacity of WorkflowDefinition cache [ConfigurationProperty(_definitionCacheCapacity, DefaultValue = 0)] public int WorkflowDefinitionCacheCapacity { get { return (int)base[_definitionCacheCapacity]; } set { base[_definitionCacheCapacity] = value; } } ///The name of the service container [ConfigurationProperty(_name, DefaultValue = "")] public string Name { get { return (string)base[_name]; } set { base[_name] = value; } } [ConfigurationProperty(_validateOnCreate, DefaultValue = true)] public bool ValidateOnCreate { get { return (bool)base[_validateOnCreate]; } set { base[_validateOnCreate] = value; } } [ConfigurationProperty(_enablePerfCounters, DefaultValue = true)] public bool EnablePerformanceCounters { get { return (bool)base[_enablePerfCounters]; } set { base[_enablePerfCounters] = value; } } ///The providers to be instantiated by the service container. [ConfigurationProperty(_services, DefaultValue = null)] public WorkflowRuntimeServiceElementCollection Services { get { return (WorkflowRuntimeServiceElementCollection)base[_services]; } } ///The resources to be shared by the services. [ConfigurationProperty(WorkflowRuntimeSection.commonParametersSectionName, DefaultValue = null)] public NameValueConfigurationCollection CommonParameters { get { return (NameValueConfigurationCollection)base[WorkflowRuntimeSection.commonParametersSectionName]; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Configuration; using System.Collections.Specialized; using System.Workflow.Runtime; namespace System.Workflow.Runtime.Configuration { ///Configuration settings for the WorkflowRuntime ////// /// Services that are automatically instantiated must implement one of the /// following constructors: /// /// public MyService(); /// public MyService(NameValueCollection); /// public MyService(WorkflowRuntime); /// public MyService(WorkflowRuntime, NameValueCollection); ///
////// /// /// public class WorkflowRuntimeSection : ConfigurationSection { private const string _services = "Services"; private const string commonParametersSectionName = "CommonParameters"; private const string _name = "Name"; private const string _validateOnCreate = "ValidateOnCreate"; private const string _enablePerfCounters = "EnablePerformanceCounters"; private const string _definitionCacheCapacity = "WorkflowDefinitionCacheCapacity"; internal const string DefaultSectionName = "WorkflowRuntime"; /// The capacity of WorkflowDefinition cache [ConfigurationProperty(_definitionCacheCapacity, DefaultValue = 0)] public int WorkflowDefinitionCacheCapacity { get { return (int)base[_definitionCacheCapacity]; } set { base[_definitionCacheCapacity] = value; } } ///The name of the service container [ConfigurationProperty(_name, DefaultValue = "")] public string Name { get { return (string)base[_name]; } set { base[_name] = value; } } [ConfigurationProperty(_validateOnCreate, DefaultValue = true)] public bool ValidateOnCreate { get { return (bool)base[_validateOnCreate]; } set { base[_validateOnCreate] = value; } } [ConfigurationProperty(_enablePerfCounters, DefaultValue = true)] public bool EnablePerformanceCounters { get { return (bool)base[_enablePerfCounters]; } set { base[_enablePerfCounters] = value; } } ///The providers to be instantiated by the service container. [ConfigurationProperty(_services, DefaultValue = null)] public WorkflowRuntimeServiceElementCollection Services { get { return (WorkflowRuntimeServiceElementCollection)base[_services]; } } ///The resources to be shared by the services. [ConfigurationProperty(WorkflowRuntimeSection.commonParametersSectionName, DefaultValue = null)] public NameValueConfigurationCollection CommonParameters { get { return (NameValueConfigurationCollection)base[WorkflowRuntimeSection.commonParametersSectionName]; } } } } // 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
- EventMappingSettingsCollection.cs
- HostSecurityManager.cs
- EntityConnectionStringBuilder.cs
- ClosableStream.cs
- LinearQuaternionKeyFrame.cs
- Wizard.cs
- ObjectListSelectEventArgs.cs
- CodeExporter.cs
- ArraySubsetEnumerator.cs
- Section.cs
- DelegateBodyWriter.cs
- TagPrefixInfo.cs
- XmlNotation.cs
- PkcsMisc.cs
- ResolveMatches11.cs
- NamespaceDecl.cs
- CompiledXpathExpr.cs
- TreeWalkHelper.cs
- ReadOnlyDataSourceView.cs
- LoginName.cs
- CodeTypeMemberCollection.cs
- HashHelper.cs
- PenLineJoinValidation.cs
- Rfc2898DeriveBytes.cs
- SyndicationDeserializer.cs
- AVElementHelper.cs
- METAHEADER.cs
- _Semaphore.cs
- SearchForVirtualItemEventArgs.cs
- ModifierKeysValueSerializer.cs
- XmlAutoDetectWriter.cs
- SQLDouble.cs
- CheckBoxFlatAdapter.cs
- ParseElement.cs
- OdbcError.cs
- Tuple.cs
- ReadOnlyCollectionBuilder.cs
- WebPartActionVerb.cs
- XomlCompilerParameters.cs
- PerformanceCounterManager.cs
- SafeBitVector32.cs
- IDictionary.cs
- TrackingProfileCache.cs
- ConfigurationSectionCollection.cs
- oledbmetadatacolumnnames.cs
- PointIndependentAnimationStorage.cs
- EastAsianLunisolarCalendar.cs
- EdmEntityTypeAttribute.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- BufferModeSettings.cs
- FragmentNavigationEventArgs.cs
- LoginViewDesigner.cs
- CodeArrayCreateExpression.cs
- FormsAuthenticationConfiguration.cs
- TrackingMemoryStream.cs
- MouseOverProperty.cs
- JsonDeserializer.cs
- _ListenerAsyncResult.cs
- GlobalizationSection.cs
- ToolStripSeparator.cs
- DependencyObjectCodeDomSerializer.cs
- XmlSchemaExporter.cs
- CodeActivityMetadata.cs
- IsolatedStorageSecurityState.cs
- SHA512.cs
- NegationPusher.cs
- HtmlInputCheckBox.cs
- XmlCharCheckingWriter.cs
- ScaleTransform3D.cs
- CapabilitiesAssignment.cs
- FileDialogCustomPlacesCollection.cs
- BuildProviderCollection.cs
- EncryptedReference.cs
- DEREncoding.cs
- CustomAttributeBuilder.cs
- PersonalizationAdministration.cs
- HostingPreferredMapPath.cs
- SynchronizationContext.cs
- ExpressionBuilderCollection.cs
- SchemaComplexType.cs
- PropertyValueChangedEvent.cs
- RtType.cs
- MouseGestureValueSerializer.cs
- BitmapMetadataBlob.cs
- ControlEvent.cs
- WebProxyScriptElement.cs
- StackSpiller.Temps.cs
- XPathChildIterator.cs
- COAUTHIDENTITY.cs
- LogicalExpressionTypeConverter.cs
- DetailsViewRowCollection.cs
- OutputCacheProfile.cs
- ReferenceEqualityComparer.cs
- X509Extension.cs
- ThreadStateException.cs
- Encoding.cs
- ServerTooBusyException.cs
- HttpClientCertificate.cs
- MsmqBindingFilter.cs
- TrailingSpaceComparer.cs