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
- XpsDocument.cs
- CellConstant.cs
- XmlSerializerVersionAttribute.cs
- BooleanToVisibilityConverter.cs
- JsonSerializer.cs
- DeviceSpecific.cs
- WindowsGraphicsCacheManager.cs
- AsyncStreamReader.cs
- CachedCompositeFamily.cs
- GroupStyle.cs
- RuntimeEnvironment.cs
- ExpressionQuoter.cs
- TypedDataSourceCodeGenerator.cs
- ReadOnlyCollectionBuilder.cs
- ElementInit.cs
- ToolStripDropDownClosedEventArgs.cs
- UnsafeNativeMethods.cs
- Int32AnimationUsingKeyFrames.cs
- DynamicVirtualDiscoSearcher.cs
- TypeReference.cs
- TextEditorSpelling.cs
- MdImport.cs
- DataGridViewRowCancelEventArgs.cs
- MetadataItemSerializer.cs
- XDRSchema.cs
- SeverityFilter.cs
- XhtmlConformanceSection.cs
- BaseUriWithWildcard.cs
- SchemaObjectWriter.cs
- Point3DIndependentAnimationStorage.cs
- TypeSystemProvider.cs
- DetailsViewDesigner.cs
- EnumUnknown.cs
- MissingMemberException.cs
- ObjectDataSourceEventArgs.cs
- DetailsViewInsertedEventArgs.cs
- SimpleWebHandlerParser.cs
- ExtenderProviderService.cs
- WebConfigurationFileMap.cs
- UniqueIdentifierService.cs
- RenamedEventArgs.cs
- OrderByBuilder.cs
- SHA256Managed.cs
- InvokePattern.cs
- WorkflowInvoker.cs
- WeakHashtable.cs
- GPRECT.cs
- Hex.cs
- RangeContentEnumerator.cs
- TemplateContentLoader.cs
- Char.cs
- WebConfigurationHost.cs
- TableLayoutRowStyleCollection.cs
- OdbcUtils.cs
- AppDomainManager.cs
- DtdParser.cs
- ModelItemImpl.cs
- TrackBarRenderer.cs
- ModelItemDictionaryImpl.cs
- ClientFormsAuthenticationCredentials.cs
- CharacterString.cs
- ActiveDocumentEvent.cs
- NameSpaceEvent.cs
- WorkflowTraceTransfer.cs
- FirewallWrapper.cs
- DependencyPropertyChangedEventArgs.cs
- sqlinternaltransaction.cs
- DispatchWrapper.cs
- PageContentCollection.cs
- BackStopAuthenticationModule.cs
- PageContentCollection.cs
- StylusTouchDevice.cs
- TextClipboardData.cs
- EmbeddedMailObjectCollectionEditor.cs
- DecoderExceptionFallback.cs
- EntityClientCacheEntry.cs
- IISUnsafeMethods.cs
- AppModelKnownContentFactory.cs
- SemaphoreSecurity.cs
- EnterpriseServicesHelper.cs
- NativeMethods.cs
- TypeBrowserDialog.cs
- UniqueConstraint.cs
- DrawingServices.cs
- TCPClient.cs
- BasicViewGenerator.cs
- WmlPhoneCallAdapter.cs
- RoutingUtilities.cs
- GridViewEditEventArgs.cs
- FullTextBreakpoint.cs
- XmlReturnWriter.cs
- PeerResolverBindingElement.cs
- BrowserInteropHelper.cs
- XmlSchemaComplexType.cs
- CanonicalizationDriver.cs
- MeshGeometry3D.cs
- XmlStreamStore.cs
- ToolBarTray.cs
- ParserStreamGeometryContext.cs
- DataSourceHelper.cs