Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQlBooleanStorage.cs
- ParameterElement.cs
- RemotingException.cs
- ArraySubsetEnumerator.cs
- URLMembershipCondition.cs
- RuntimeConfig.cs
- HyperLinkColumn.cs
- ProcessModule.cs
- ArithmeticException.cs
- TokenBasedSet.cs
- CommandArguments.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ControlCollection.cs
- TemplateInstanceAttribute.cs
- XmlNavigatorStack.cs
- CacheEntry.cs
- ConfigXmlAttribute.cs
- GeneralTransform2DTo3DTo2D.cs
- XPathBuilder.cs
- BamlRecords.cs
- Ref.cs
- InputBindingCollection.cs
- odbcmetadatafactory.cs
- ShutDownListener.cs
- ProviderConnectionPointCollection.cs
- RenderingEventArgs.cs
- ToolStripPanel.cs
- ReadOnlyCollection.cs
- RoutingService.cs
- Message.cs
- HttpRequest.cs
- ProgressBarRenderer.cs
- NetPipeSection.cs
- XmlSchemaAnyAttribute.cs
- XamlPathDataSerializer.cs
- DynamicActionMessageFilter.cs
- ClientScriptManagerWrapper.cs
- Point3DAnimation.cs
- TokenBasedSet.cs
- SystemResourceKey.cs
- EntityDataSourceChangingEventArgs.cs
- URLString.cs
- AutoResetEvent.cs
- WebPageTraceListener.cs
- SlipBehavior.cs
- LogAppendAsyncResult.cs
- XmlDocumentFragment.cs
- IMembershipProvider.cs
- UIElement3D.cs
- SQLUtility.cs
- DocumentPaginator.cs
- QueryStringParameter.cs
- PlaceHolder.cs
- ListViewItem.cs
- MeasureItemEvent.cs
- _MultipleConnectAsync.cs
- Membership.cs
- MemoryPressure.cs
- TableRowsCollectionEditor.cs
- SmiContextFactory.cs
- WindowsSlider.cs
- BufferedGraphicsContext.cs
- DoubleLinkList.cs
- ExpressionEditorSheet.cs
- HttpServerChannel.cs
- TransformValueSerializer.cs
- JsonDeserializer.cs
- CodeIndexerExpression.cs
- DataGridBeginningEditEventArgs.cs
- Select.cs
- PngBitmapDecoder.cs
- ToolStripContainer.cs
- RequestQueryProcessor.cs
- TreeNodeBinding.cs
- InstanceKeyView.cs
- categoryentry.cs
- BuilderPropertyEntry.cs
- TextServicesContext.cs
- Quaternion.cs
- ProcessStartInfo.cs
- TypeExtension.cs
- XmlDocumentFragment.cs
- Span.cs
- MultilineStringConverter.cs
- WindowsFormsSynchronizationContext.cs
- EdmProperty.cs
- EventsTab.cs
- SoapHeaders.cs
- InfoCardService.cs
- FormatterConverter.cs
- TrackingProfileDeserializationException.cs
- PlaceHolder.cs
- SafeViewOfFileHandle.cs
- BevelBitmapEffect.cs
- BrowserCapabilitiesCompiler.cs
- Lease.cs
- UInt32.cs
- HWStack.cs
- CaseInsensitiveComparer.cs
- State.cs