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
- XmlBinaryReader.cs
- Odbc32.cs
- CodeRemoveEventStatement.cs
- FrameDimension.cs
- CheckoutException.cs
- ISCIIEncoding.cs
- CodeCompiler.cs
- DispatcherTimer.cs
- MILUtilities.cs
- SqlDataSourceView.cs
- PowerModeChangedEventArgs.cs
- StandardCommands.cs
- WebBrowser.cs
- WorkflowInstanceExtensionManager.cs
- PreviewKeyDownEventArgs.cs
- ProviderSettings.cs
- StrokeNode.cs
- Image.cs
- MarkupExtensionParser.cs
- SafeBuffer.cs
- IntranetCredentialPolicy.cs
- InfiniteTimeSpanConverter.cs
- MessageBuffer.cs
- ChineseLunisolarCalendar.cs
- HttpListenerException.cs
- SqlCacheDependency.cs
- XPathNavigatorKeyComparer.cs
- Transform.cs
- ExpressionsCollectionConverter.cs
- FileDialog_Vista.cs
- ListSurrogate.cs
- SequenceRange.cs
- WebPartsPersonalization.cs
- _OSSOCK.cs
- MarshalByRefObject.cs
- XmlFormatExtensionPointAttribute.cs
- ColorTranslator.cs
- Rss20ItemFormatter.cs
- Menu.cs
- ProxyWebPartConnectionCollection.cs
- BaseProcessProtocolHandler.cs
- GetRecipientListRequest.cs
- ValidationManager.cs
- MemberCollection.cs
- DataSourceCacheDurationConverter.cs
- XmlILConstructAnalyzer.cs
- xmlfixedPageInfo.cs
- HttpPostClientProtocol.cs
- ConfigXmlWhitespace.cs
- DeviceFiltersSection.cs
- EdmToObjectNamespaceMap.cs
- OperationFormatStyle.cs
- CommonRemoteMemoryBlock.cs
- BlobPersonalizationState.cs
- _HTTPDateParse.cs
- BindingNavigator.cs
- SynchronizationContext.cs
- Marshal.cs
- XmlSecureResolver.cs
- WaitForChangedResult.cs
- Buffer.cs
- InputReportEventArgs.cs
- ReadonlyMessageFilter.cs
- ContainerCodeDomSerializer.cs
- _SslState.cs
- EventProviderClassic.cs
- SafePointer.cs
- TraceUtils.cs
- DataPager.cs
- XPathSelectionIterator.cs
- WebPartMenuStyle.cs
- SiteOfOriginContainer.cs
- MailHeaderInfo.cs
- Label.cs
- HwndHost.cs
- WindowsFormsEditorServiceHelper.cs
- NonceCache.cs
- EntityException.cs
- CodeCatchClauseCollection.cs
- CompiledQueryCacheKey.cs
- RegexMatch.cs
- ComContractElement.cs
- ClassicBorderDecorator.cs
- RelatedPropertyManager.cs
- ConfigsHelper.cs
- GreaterThanOrEqual.cs
- TrustLevel.cs
- ConfigurationLocationCollection.cs
- JsonGlobals.cs
- ComboBox.cs
- ColorTransformHelper.cs
- WindowsContainer.cs
- FixedSOMElement.cs
- HwndKeyboardInputProvider.cs
- Parser.cs
- ComponentRenameEvent.cs
- DataColumn.cs
- UserControlParser.cs
- ListBoxAutomationPeer.cs
- Int32.cs