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
- ConnectionManagementSection.cs
- HttpRequestWrapper.cs
- SQLDateTimeStorage.cs
- HexParser.cs
- FacetDescriptionElement.cs
- ExpressionBuilder.cs
- RtfControls.cs
- DocumentSchemaValidator.cs
- DesignSurfaceCollection.cs
- NativeMethods.cs
- SerializationAttributes.cs
- odbcmetadatafactory.cs
- DataGridViewControlCollection.cs
- TextRangeProviderWrapper.cs
- FaultDesigner.cs
- Decoder.cs
- FlowDocumentScrollViewer.cs
- EncryptedReference.cs
- ExtenderControl.cs
- ResourceDescriptionAttribute.cs
- BinaryObjectWriter.cs
- XmlDictionaryReaderQuotasElement.cs
- TextElementCollection.cs
- PropertyInfoSet.cs
- SerializationException.cs
- UndoManager.cs
- ParallelActivityDesigner.cs
- mactripleDES.cs
- DesignerSerializerAttribute.cs
- InstanceCollisionException.cs
- MSAAWinEventWrap.cs
- ConfigurationManagerHelper.cs
- DataGridCommandEventArgs.cs
- ParserOptions.cs
- MSG.cs
- ReturnValue.cs
- IisTraceListener.cs
- XmlCustomFormatter.cs
- HtmlEncodedRawTextWriter.cs
- ScriptIgnoreAttribute.cs
- BasicHttpMessageSecurityElement.cs
- SplineKeyFrames.cs
- SwitchAttribute.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DashStyle.cs
- SchemaMapping.cs
- DataSpaceManager.cs
- MSAANativeProvider.cs
- SqlXml.cs
- BamlRecordWriter.cs
- BamlTreeNode.cs
- ClientApiGenerator.cs
- UpdatePanelTriggerCollection.cs
- FileChangesMonitor.cs
- DateTimeFormatInfoScanner.cs
- NameValueCollection.cs
- CodeDefaultValueExpression.cs
- DataSourceCacheDurationConverter.cs
- LeafCellTreeNode.cs
- LinkedResourceCollection.cs
- AsymmetricSignatureDeformatter.cs
- DesignerActionUI.cs
- MethodBody.cs
- Delegate.cs
- TextMetrics.cs
- GACMembershipCondition.cs
- ContentIterators.cs
- Quad.cs
- PeerCollaboration.cs
- sqlmetadatafactory.cs
- SerializationStore.cs
- TreeViewAutomationPeer.cs
- ConstructorBuilder.cs
- DoubleUtil.cs
- ValidatorCompatibilityHelper.cs
- InstanceNotReadyException.cs
- Margins.cs
- CssClassPropertyAttribute.cs
- DesignTimeData.cs
- ProcessRequestArgs.cs
- X509ServiceCertificateAuthenticationElement.cs
- LineBreakRecord.cs
- BindingBase.cs
- remotingproxy.cs
- TextServicesProperty.cs
- DataGridViewRowCancelEventArgs.cs
- TableAdapterManagerNameHandler.cs
- EventLogStatus.cs
- RolePrincipal.cs
- Rules.cs
- CommandHelper.cs
- ToolZone.cs
- ExpressionWriter.cs
- DBCommandBuilder.cs
- RelationshipManager.cs
- WebServiceReceive.cs
- GlobalDataBindingHandler.cs
- EventToken.cs
- Debug.cs
- WorkflowPersistenceService.cs