Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / TransactedBatchingElement.cs / 1 / TransactedBatchingElement.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System.Configuration;
using System.ServiceModel.Description;
public sealed partial class TransactedBatchingElement : BehaviorExtensionElement
{
[ConfigurationProperty(ConfigurationStrings.MaxBatchSize, DefaultValue = 0)]
[IntegerValidator(MinValue = 0)]
public int MaxBatchSize
{
get {return (int) base[ConfigurationStrings.MaxBatchSize]; }
set {base[ConfigurationStrings.MaxBatchSize] = value; }
}
public override void CopyFrom(ServiceModelExtensionElement from)
{
base.CopyFrom(from);
TransactedBatchingElement source = from as TransactedBatchingElement;
#pragma warning suppress 56506 //[....]; base.CopyFrom() checks for 'from' being null
this.MaxBatchSize = source.MaxBatchSize;
}
protected internal override object CreateBehavior()
{
return new TransactedBatchingBehavior(this.MaxBatchSize);
}
public override Type BehaviorType
{
get { return typeof(TransactedBatchingBehavior); }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- COM2IDispatchConverter.cs
- EntityContainerEmitter.cs
- ReachVisualSerializerAsync.cs
- ProvidePropertyAttribute.cs
- InstanceCompleteException.cs
- GlyphInfoList.cs
- Accessors.cs
- Cursor.cs
- SqlColumnizer.cs
- NetNamedPipeBindingElement.cs
- IgnoreSectionHandler.cs
- DataGridRow.cs
- ToolBarButton.cs
- Socket.cs
- BindingRestrictions.cs
- ObjectDataSourceStatusEventArgs.cs
- FullTextBreakpoint.cs
- PrimitiveCodeDomSerializer.cs
- BinaryNode.cs
- httpapplicationstate.cs
- Range.cs
- WriterOutput.cs
- ListViewTableRow.cs
- HttpCapabilitiesEvaluator.cs
- LinqDataSourceSelectEventArgs.cs
- ReachDocumentSequenceSerializer.cs
- RichTextBoxConstants.cs
- DrawListViewSubItemEventArgs.cs
- _ShellExpression.cs
- XamlSerializer.cs
- diagnosticsswitches.cs
- _DomainName.cs
- InputMethodStateChangeEventArgs.cs
- MulticastNotSupportedException.cs
- HttpCachePolicy.cs
- BoundColumn.cs
- ListControlConvertEventArgs.cs
- EditorPartChrome.cs
- Win32Native.cs
- CalendarDateChangedEventArgs.cs
- ManagedWndProcTracker.cs
- WebBrowserUriTypeConverter.cs
- SHA512CryptoServiceProvider.cs
- DataGridComboBoxColumn.cs
- CrossAppDomainChannel.cs
- ModelItemImpl.cs
- BitmapEffectDrawingContextWalker.cs
- XamlNamespaceHelper.cs
- CompilationSection.cs
- CacheOutputQuery.cs
- MailDefinition.cs
- TextStore.cs
- ModuleElement.cs
- WebPartDescriptionCollection.cs
- XhtmlConformanceSection.cs
- CopyOfAction.cs
- TreeViewDataItemAutomationPeer.cs
- PtsHost.cs
- CapabilitiesAssignment.cs
- DataGridToolTip.cs
- Panel.cs
- MimePart.cs
- DataTransferEventArgs.cs
- MetadataSet.cs
- AutomationPropertyInfo.cs
- ClientRequest.cs
- SecurityElement.cs
- HandleRef.cs
- BinHexDecoder.cs
- SQlBooleanStorage.cs
- RouteTable.cs
- NegotiationTokenProvider.cs
- SaveFileDialog.cs
- RuntimeVariableList.cs
- TimeSpanSecondsConverter.cs
- DeploymentExceptionMapper.cs
- SemaphoreSecurity.cs
- DBSchemaTable.cs
- CodeCatchClauseCollection.cs
- XmlSchemaParticle.cs
- QueryMath.cs
- FileLoadException.cs
- IResourceProvider.cs
- BoundField.cs
- WebPartConnectionsConnectVerb.cs
- SpotLight.cs
- XmlAttributeHolder.cs
- TouchFrameEventArgs.cs
- CodeTypeReference.cs
- FormatConvertedBitmap.cs
- XmlCharacterData.cs
- SequentialUshortCollection.cs
- LeaseManager.cs
- ServicePointManager.cs
- XmlSchemaType.cs
- Config.cs
- SetStateEventArgs.cs
- Aes.cs
- LogicalChannel.cs
- FrameworkEventSource.cs