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
- XamlStyleSerializer.cs
- AutomationPropertyInfo.cs
- PreviewKeyDownEventArgs.cs
- ControlValuePropertyAttribute.cs
- VirtualDirectoryMappingCollection.cs
- TransformerInfo.cs
- WebBrowserNavigatingEventHandler.cs
- PropertyGridEditorPart.cs
- XmlQueryStaticData.cs
- ActivatedMessageQueue.cs
- ThousandthOfEmRealPoints.cs
- DataKeyCollection.cs
- TextContainerChangedEventArgs.cs
- _CommandStream.cs
- InvalidContentTypeException.cs
- UidManager.cs
- BindingContext.cs
- FlowDocumentFormatter.cs
- ConsoleTraceListener.cs
- UnicodeEncoding.cs
- GlyphTypeface.cs
- HuffModule.cs
- FileSecurity.cs
- UIElementParaClient.cs
- CompilerTypeWithParams.cs
- MetadataSource.cs
- SyndicationDeserializer.cs
- BufferedGraphicsManager.cs
- ObjectDataSourceView.cs
- ClientSettingsStore.cs
- QueryStringParameter.cs
- DataGridViewCellValidatingEventArgs.cs
- GeometryHitTestResult.cs
- MatrixValueSerializer.cs
- GifBitmapEncoder.cs
- ClientViaElement.cs
- TheQuery.cs
- MeshGeometry3D.cs
- IdentityReference.cs
- COM2PropertyPageUITypeConverter.cs
- PointValueSerializer.cs
- DecoratedNameAttribute.cs
- IntersectQueryOperator.cs
- Utils.cs
- UriExt.cs
- Button.cs
- WebServiceClientProxyGenerator.cs
- OuterGlowBitmapEffect.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- DiscoveryClientDuplexChannel.cs
- SqlErrorCollection.cs
- smtpconnection.cs
- COM2ColorConverter.cs
- XmlDictionaryReader.cs
- ClientProtocol.cs
- CookieParameter.cs
- EventWaitHandle.cs
- FixedTextSelectionProcessor.cs
- RunClient.cs
- PopupRootAutomationPeer.cs
- XmlAttributeHolder.cs
- LoginUtil.cs
- ImportedNamespaceContextItem.cs
- ExtensionElementCollection.cs
- RijndaelManaged.cs
- OdbcConnection.cs
- DocumentSequence.cs
- CookieProtection.cs
- PageEventArgs.cs
- DataServiceEntityAttribute.cs
- PeerCustomResolverSettings.cs
- ContainerParaClient.cs
- SqlConnectionFactory.cs
- MediaEntryAttribute.cs
- KeyPressEvent.cs
- RightsManagementPermission.cs
- UMPAttributes.cs
- WebPartRestoreVerb.cs
- WorkflowServiceNamespace.cs
- TransformerConfigurationWizardBase.cs
- SemanticKeyElement.cs
- WmlLinkAdapter.cs
- WindowVisualStateTracker.cs
- DbConnectionPoolGroupProviderInfo.cs
- FamilyTypeface.cs
- AspNetRouteServiceHttpHandler.cs
- DataObjectMethodAttribute.cs
- ToolStripComboBox.cs
- TcpProcessProtocolHandler.cs
- InstalledVoice.cs
- CodeObject.cs
- EventMemberCodeDomSerializer.cs
- ImageMapEventArgs.cs
- PropertyChangingEventArgs.cs
- SelectManyQueryOperator.cs
- TextStore.cs
- TransformProviderWrapper.cs
- FileDialogPermission.cs
- WebScriptServiceHostFactory.cs
- ListViewItem.cs