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
- PackWebRequestFactory.cs
- ProcessInputEventArgs.cs
- QilGeneratorEnv.cs
- PropertyChangingEventArgs.cs
- EntityClassGenerator.cs
- TextureBrush.cs
- XmlSignificantWhitespace.cs
- DrawingGroup.cs
- ChannelProtectionRequirements.cs
- DateTimeStorage.cs
- ClientConfigurationSystem.cs
- RegexCompilationInfo.cs
- BufferedOutputAsyncStream.cs
- NonDualMessageSecurityOverHttp.cs
- BrowserCapabilitiesCodeGenerator.cs
- SqlDataSourceConfigureFilterForm.cs
- AsymmetricSecurityProtocol.cs
- XmlElementAttributes.cs
- SystemBrushes.cs
- Int32Rect.cs
- AddIn.cs
- StructuralCache.cs
- WebServiceResponse.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ClientTargetCollection.cs
- TableLayoutPanelResizeGlyph.cs
- LinearQuaternionKeyFrame.cs
- TdsParameterSetter.cs
- CompositeFontInfo.cs
- X509SecurityTokenParameters.cs
- NodeLabelEditEvent.cs
- Duration.cs
- LicenseException.cs
- PrintingPermission.cs
- HandledMouseEvent.cs
- CommandHelpers.cs
- SqlCachedBuffer.cs
- ItemContainerGenerator.cs
- XmlObjectSerializerWriteContextComplex.cs
- CodeValidator.cs
- WebPartVerbsEventArgs.cs
- FilterableAttribute.cs
- NavigatorInput.cs
- Scene3D.cs
- Completion.cs
- Internal.cs
- XmlWhitespace.cs
- ScrollPatternIdentifiers.cs
- MyContact.cs
- SqlBinder.cs
- XPathEmptyIterator.cs
- CorePropertiesFilter.cs
- TreeNodeEventArgs.cs
- SafeNativeMethods.cs
- ArrayWithOffset.cs
- OutputCacheModule.cs
- _LocalDataStoreMgr.cs
- SqlLiftIndependentRowExpressions.cs
- DataPagerFieldCommandEventArgs.cs
- CompilationPass2Task.cs
- ServicePoint.cs
- CryptoApi.cs
- TextAutomationPeer.cs
- EditorPartCollection.cs
- WebConfigurationHost.cs
- RenderTargetBitmap.cs
- DataContractSerializerFaultFormatter.cs
- XmlElement.cs
- CommittableTransaction.cs
- SystemIcmpV4Statistics.cs
- PeerNameRecord.cs
- ClockController.cs
- EntityClientCacheKey.cs
- FilterFactory.cs
- NegotiateStream.cs
- Brushes.cs
- RequiredFieldValidator.cs
- SiteMembershipCondition.cs
- UnitySerializationHolder.cs
- RSACryptoServiceProvider.cs
- ForwardPositionQuery.cs
- TextDocumentView.cs
- GlyphElement.cs
- AssociationType.cs
- RuleAttributes.cs
- FontFamily.cs
- SqlUdtInfo.cs
- CatalogZone.cs
- Single.cs
- AuthorizationSection.cs
- UrlMappingsSection.cs
- bindurihelper.cs
- Geometry3D.cs
- WebPartEventArgs.cs
- sqlmetadatafactory.cs
- ContentOperations.cs
- DesignTimeTemplateParser.cs
- FormsAuthenticationUserCollection.cs
- OutOfProcStateClientManager.cs
- XsdDateTime.cs