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
- ValidatorCompatibilityHelper.cs
- BridgeDataReader.cs
- XPathScanner.cs
- SurrogateSelector.cs
- BeginSelectCardRequest.cs
- PageTheme.cs
- StringConcat.cs
- AttributeAction.cs
- ControllableStoryboardAction.cs
- WindowsHyperlink.cs
- MailHeaderInfo.cs
- WebPartConnectVerb.cs
- PageParserFilter.cs
- OdbcParameter.cs
- ObjectViewFactory.cs
- TraceUtility.cs
- GridViewRowPresenter.cs
- CellTreeNode.cs
- ArrangedElement.cs
- CodeBlockBuilder.cs
- PseudoWebRequest.cs
- WindowManager.cs
- ReturnEventArgs.cs
- FileNameEditor.cs
- WebPartRestoreVerb.cs
- Int32RectValueSerializer.cs
- CompiledRegexRunner.cs
- CommandLibraryHelper.cs
- OleDbInfoMessageEvent.cs
- RelationshipConverter.cs
- Message.cs
- BCLDebug.cs
- PersonalizationStateInfo.cs
- _NestedMultipleAsyncResult.cs
- HtmlDocument.cs
- SerTrace.cs
- DesignColumn.cs
- SQLGuid.cs
- XmlSchemaAnnotated.cs
- OleServicesContext.cs
- Int32Rect.cs
- HttpRequestCacheValidator.cs
- Messages.cs
- Table.cs
- ControlOperationBehavior.cs
- SqlClientWrapperSmiStream.cs
- WebEventCodes.cs
- Separator.cs
- TabItemAutomationPeer.cs
- AnnotationObservableCollection.cs
- CommandSet.cs
- CharStorage.cs
- EnlistmentTraceIdentifier.cs
- BitmapEffect.cs
- PropertySourceInfo.cs
- CodeCastExpression.cs
- CngProperty.cs
- ListBoxItem.cs
- QueryTreeBuilder.cs
- WorkerRequest.cs
- DrawingAttributes.cs
- EmbeddedObject.cs
- XmlQualifiedNameTest.cs
- OleDbDataReader.cs
- ResXBuildProvider.cs
- DesignerView.Commands.cs
- WebPartConnectionsCloseVerb.cs
- StylusSystemGestureEventArgs.cs
- WriteStateInfoBase.cs
- PeerNameRecord.cs
- HtmlProps.cs
- OracleNumber.cs
- TypeInfo.cs
- XmlHelper.cs
- ToolStripDropDown.cs
- Vector3DCollectionValueSerializer.cs
- MonikerProxyAttribute.cs
- KerberosReceiverSecurityToken.cs
- HandleScope.cs
- ThemeDirectoryCompiler.cs
- NamedPipeTransportBindingElement.cs
- StylusPointPropertyInfo.cs
- ExpressionBuilderContext.cs
- ComponentRenameEvent.cs
- TreeViewCancelEvent.cs
- LineSegment.cs
- DataViewSetting.cs
- SearchForVirtualItemEventArgs.cs
- SqlCaseSimplifier.cs
- MatchingStyle.cs
- XamlPathDataSerializer.cs
- CodeExporter.cs
- IsolatedStorage.cs
- DrawToolTipEventArgs.cs
- SurrogateEncoder.cs
- IOThreadScheduler.cs
- TextServicesLoader.cs
- ConfigurationValue.cs
- IERequestCache.cs
- FactoryMaker.cs