Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Activities / System / ServiceModel / Activities / Configuration / BufferedReceiveElement.cs / 1305376 / BufferedReceiveElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Activities.Configuration { using System.Runtime; using System.Configuration; using System.ComponentModel; using System.ServiceModel.Configuration; using System.ServiceModel.Activities.Description; public sealed class BufferedReceiveElement : BehaviorExtensionElement { ConfigurationPropertyCollection properties; const string MaxPendingMessagesPerChannelString = "maxPendingMessagesPerChannel"; public BufferedReceiveElement() { } [ConfigurationProperty(MaxPendingMessagesPerChannelString, DefaultValue = BufferedReceiveServiceBehavior.DefaultMaxPendingMessagesPerChannel)] [TypeConverter(typeof(Int32Converter))] [IntegerValidator(MinValue = 1, MaxValue = Int32.MaxValue)] public int MaxPendingMessagesPerChannel { get { return (int)base[MaxPendingMessagesPerChannelString]; } set { base[MaxPendingMessagesPerChannelString] = value; } } protected internal override object CreateBehavior() { return new BufferedReceiveServiceBehavior() { MaxPendingMessagesPerChannel = this.MaxPendingMessagesPerChannel }; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Configuration", "Configuration102:ConfigurationPropertyAttributeRule", MessageId = "System.ServiceModel.Activities.Configuration.BufferedReceiveElement.BehaviorType", Justification = "Not a configurable property; a property that had to be overridden from abstract parent class")] public override Type BehaviorType { get { return typeof(BufferedReceiveServiceBehavior); } } protected override ConfigurationPropertyCollection Properties { get { if (this.properties == null) { ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); properties.Add(new ConfigurationProperty(MaxPendingMessagesPerChannelString, typeof(Int32), BufferedReceiveServiceBehavior.DefaultMaxPendingMessagesPerChannel, new Int32Converter(), new IntegerValidator(1, Int32.MaxValue), ConfigurationPropertyOptions.None)); this.properties = properties; } return this.properties; } } } } // 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
- RelationshipWrapper.cs
- ConfigXmlCDataSection.cs
- HitTestParameters3D.cs
- ValidationPropertyAttribute.cs
- TimelineClockCollection.cs
- TemplateControlBuildProvider.cs
- EventRouteFactory.cs
- ColorPalette.cs
- LocatorPartList.cs
- AccessViolationException.cs
- SQLInt16.cs
- SynchronizedDispatch.cs
- RectangleConverter.cs
- XmlnsCompatibleWithAttribute.cs
- _BaseOverlappedAsyncResult.cs
- _OverlappedAsyncResult.cs
- PageCatalogPart.cs
- PassportPrincipal.cs
- Matrix.cs
- CommonGetThemePartSize.cs
- QueryInterceptorAttribute.cs
- ElapsedEventArgs.cs
- XmlSortKeyAccumulator.cs
- UIElementCollection.cs
- XmlSchemaImporter.cs
- PrimitiveType.cs
- BaseParagraph.cs
- InternalUserCancelledException.cs
- UrlAuthFailureHandler.cs
- DataGridItemCollection.cs
- DataProtection.cs
- DelimitedListTraceListener.cs
- XMLSyntaxException.cs
- KoreanLunisolarCalendar.cs
- VoiceObjectToken.cs
- CookielessHelper.cs
- RadioButtonBaseAdapter.cs
- SerializationInfoEnumerator.cs
- SafeHandles.cs
- StyleCollection.cs
- PropertyValueUIItem.cs
- DataRecordObjectView.cs
- ExpressionList.cs
- EditorZone.cs
- PerformanceCounterPermissionEntryCollection.cs
- WithParamAction.cs
- EasingFunctionBase.cs
- HorizontalAlignConverter.cs
- SqlClientMetaDataCollectionNames.cs
- ScriptServiceAttribute.cs
- OneOfScalarConst.cs
- TypeInfo.cs
- PropertyMapper.cs
- HelloMessageApril2005.cs
- SqlDependency.cs
- VersionPair.cs
- NativeObjectSecurity.cs
- HwndPanningFeedback.cs
- XsltException.cs
- EllipseGeometry.cs
- WebBrowserNavigatingEventHandler.cs
- EventLogPermission.cs
- TableLayoutSettingsTypeConverter.cs
- TrackingServices.cs
- ObjectListShowCommandsEventArgs.cs
- TypedTableBase.cs
- SiteMapNodeItem.cs
- EdgeProfileValidation.cs
- DefaultPropertyAttribute.cs
- QueueAccessMode.cs
- SelectorAutomationPeer.cs
- ObjectViewEntityCollectionData.cs
- IndependentAnimationStorage.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- Color.cs
- DesignerVerbCollection.cs
- TrailingSpaceComparer.cs
- UnionCodeGroup.cs
- Crc32.cs
- SourceFileInfo.cs
- UIElement3D.cs
- StreamInfo.cs
- WebPartChrome.cs
- SafeTimerHandle.cs
- _ConnectOverlappedAsyncResult.cs
- Scene3D.cs
- DataKeyCollection.cs
- RIPEMD160Managed.cs
- FormatException.cs
- SystemIPv4InterfaceProperties.cs
- DataGridViewCellEventArgs.cs
- DefaultTraceListener.cs
- ApplicationServicesHostFactory.cs
- ReaderOutput.cs
- ChineseLunisolarCalendar.cs
- ItemDragEvent.cs
- IPipelineRuntime.cs
- ServiceProviders.cs
- CompensateDesigner.cs
- LinearGradientBrush.cs