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
- TypeNameParser.cs
- WebServicesSection.cs
- ElementNotEnabledException.cs
- WindowsContainer.cs
- Int32Rect.cs
- CellTreeNode.cs
- HtmlInputReset.cs
- PropertyManager.cs
- MetabaseServerConfig.cs
- SecureStringHasher.cs
- TransactionalPackage.cs
- CompoundFileStreamReference.cs
- JapaneseLunisolarCalendar.cs
- BitmapDecoder.cs
- Point4D.cs
- InitializerFacet.cs
- HttpChannelFactory.cs
- KeyedCollection.cs
- TrailingSpaceComparer.cs
- TraceContext.cs
- AppSettingsSection.cs
- ValidationError.cs
- ChannelSinkStacks.cs
- TransactionException.cs
- TickBar.cs
- EntityDesignerDataSourceView.cs
- CodeDelegateCreateExpression.cs
- TriggerAction.cs
- UpDownBaseDesigner.cs
- DropTarget.cs
- JsonClassDataContract.cs
- OverloadGroupAttribute.cs
- Convert.cs
- ReadWriteSpinLock.cs
- PasswordBoxAutomationPeer.cs
- X509AsymmetricSecurityKey.cs
- OptimalTextSource.cs
- NativeMethods.cs
- unitconverter.cs
- __Error.cs
- MimePart.cs
- TextCompositionEventArgs.cs
- TextServicesDisplayAttribute.cs
- ConstraintStruct.cs
- WebPartDisplayModeCollection.cs
- SystemParameters.cs
- CodeDomComponentSerializationService.cs
- BasicBrowserDialog.designer.cs
- Graphics.cs
- EntityParameter.cs
- SmiRecordBuffer.cs
- ClientEventManager.cs
- SafeRegistryHandle.cs
- GridSplitterAutomationPeer.cs
- Keyboard.cs
- ProfileBuildProvider.cs
- TextTreeDeleteContentUndoUnit.cs
- UnmanagedMemoryStreamWrapper.cs
- ToolbarAUtomationPeer.cs
- ControlCodeDomSerializer.cs
- CodeExporter.cs
- XmlUtilWriter.cs
- ClassicBorderDecorator.cs
- FixedSOMGroup.cs
- DiscoveryVersionConverter.cs
- _AutoWebProxyScriptHelper.cs
- DbConnectionFactory.cs
- OpCellTreeNode.cs
- BindValidator.cs
- BitmapFrameEncode.cs
- TranslateTransform3D.cs
- ToolStripItemClickedEventArgs.cs
- SmtpTransport.cs
- MsmqActivation.cs
- WsatTransactionInfo.cs
- TextSelectionProcessor.cs
- ToolStripButton.cs
- RequestCacheManager.cs
- DataRowExtensions.cs
- QueryCacheManager.cs
- ScriptManagerProxy.cs
- InstanceContextManager.cs
- DataGridViewIntLinkedList.cs
- TableParaClient.cs
- SvcMapFileSerializer.cs
- TransactionBehavior.cs
- GridViewRowCollection.cs
- MembershipPasswordException.cs
- RadioButtonAutomationPeer.cs
- Transactions.cs
- FormViewInsertedEventArgs.cs
- ToolStrip.cs
- XmlObjectSerializerReadContextComplexJson.cs
- MenuScrollingVisibilityConverter.cs
- WorkflowItemsPresenter.cs
- DeclaredTypeElement.cs
- AstNode.cs
- TargetControlTypeAttribute.cs
- BaseCodePageEncoding.cs
- WindowAutomationPeer.cs