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
- DesignerHelpers.cs
- RTLAwareMessageBox.cs
- DataGridRelationshipRow.cs
- SHA1.cs
- State.cs
- MeasurementDCInfo.cs
- SourceExpressionException.cs
- ProjectionPathBuilder.cs
- Help.cs
- XmlSchemaValidationException.cs
- SerialPinChanges.cs
- UnknownWrapper.cs
- ObjectView.cs
- RuleSettingsCollection.cs
- SharedStream.cs
- OrthographicCamera.cs
- VirtualizingStackPanel.cs
- BitSet.cs
- MenuItem.cs
- SetterBaseCollection.cs
- NextPreviousPagerField.cs
- SocketAddress.cs
- _ContextAwareResult.cs
- GcHandle.cs
- MemberAccessException.cs
- connectionpool.cs
- BuilderInfo.cs
- ValueTypeFieldReference.cs
- LifetimeServices.cs
- ADConnectionHelper.cs
- SQLInt64Storage.cs
- Rectangle.cs
- XPathNavigator.cs
- XmlFormatExtensionAttribute.cs
- SqlUtils.cs
- ReferenceTypeElement.cs
- BrowserCapabilitiesCompiler.cs
- MetadataResolver.cs
- RangeValidator.cs
- StyleBamlTreeBuilder.cs
- PackageDigitalSignature.cs
- DragEvent.cs
- Helpers.cs
- DateTimeValueSerializerContext.cs
- Rule.cs
- Variant.cs
- ScalarRestriction.cs
- DataBoundLiteralControl.cs
- RelationshipConstraintValidator.cs
- ItemCheckEvent.cs
- SafeProcessHandle.cs
- DesignerGeometryHelper.cs
- FatalException.cs
- FigureParagraph.cs
- ApplicationInterop.cs
- TypeBuilderInstantiation.cs
- LayoutTableCell.cs
- TimeManager.cs
- RepeaterItem.cs
- MissingMethodException.cs
- ColorDialog.cs
- EmptyCollection.cs
- SecurityKeyType.cs
- HtmlTableCell.cs
- XmlStreamNodeWriter.cs
- ErasingStroke.cs
- ShimAsPublicXamlType.cs
- DataGridViewDataConnection.cs
- SystemWebExtensionsSectionGroup.cs
- FixedSOMLineRanges.cs
- AuthorizationRule.cs
- MouseButtonEventArgs.cs
- EnumMember.cs
- SqlConnectionStringBuilder.cs
- AdapterSwitches.cs
- DescendentsWalkerBase.cs
- ChunkedMemoryStream.cs
- Row.cs
- EventProvider.cs
- DataSourceHelper.cs
- DataGridSortCommandEventArgs.cs
- ClientProtocol.cs
- Hashtable.cs
- SafeRightsManagementEnvironmentHandle.cs
- Int32Rect.cs
- LocatorBase.cs
- DispatcherObject.cs
- HttpHandlerAction.cs
- FloaterBaseParaClient.cs
- TextEditorParagraphs.cs
- ExpressionConverter.cs
- AxisAngleRotation3D.cs
- StateRuntime.cs
- SystemException.cs
- DataGridViewRow.cs
- ExpressionConverter.cs
- SqlDataSourceView.cs
- FontDialog.cs
- EventLogPermissionEntry.cs
- StylusPointCollection.cs