Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / MsmqTransportElement.cs / 1 / MsmqTransportElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.Net.Security; using System.ServiceModel.Channels; public sealed partial class MsmqTransportElement : MsmqElementBase { [ConfigurationProperty(ConfigurationStrings.MaxPoolSize, DefaultValue = MsmqDefaults.MaxPoolSize)] [IntegerValidator(MinValue = 0)] public int MaxPoolSize { get { return (int)base[ConfigurationStrings.MaxPoolSize]; } set { base[ConfigurationStrings.MaxPoolSize] = value; } } [ConfigurationProperty(ConfigurationStrings.QueueTransferProtocol, DefaultValue = MsmqDefaults.QueueTransferProtocol)] [ServiceModelEnumValidator(typeof(QueueTransferProtocolHelper))] public QueueTransferProtocol QueueTransferProtocol { get {return (QueueTransferProtocol) base[ConfigurationStrings.QueueTransferProtocol]; } set {base[ConfigurationStrings.QueueTransferProtocol] = value; } } [ConfigurationProperty(ConfigurationStrings.UseActiveDirectory, DefaultValue = MsmqDefaults.UseActiveDirectory)] public bool UseActiveDirectory { get {return (bool) base[ConfigurationStrings.UseActiveDirectory]; } set {base[ConfigurationStrings.UseActiveDirectory] = value; } } public override Type BindingElementType { get { return typeof(MsmqTransportBindingElement); } } protected override TransportBindingElement CreateDefaultBindingElement() { return new MsmqTransportBindingElement(); } public override void ApplyConfiguration(BindingElement bindingElement) { base.ApplyConfiguration(bindingElement); MsmqTransportBindingElement binding = bindingElement as MsmqTransportBindingElement; binding.MaxPoolSize = this.MaxPoolSize; binding.QueueTransferProtocol = this.QueueTransferProtocol; binding.UseActiveDirectory = this.UseActiveDirectory; } public override void CopyFrom(ServiceModelExtensionElement from) { base.CopyFrom(from); MsmqTransportElement source = from as MsmqTransportElement; if (null != source) { this.MaxPoolSize = source.MaxPoolSize; this.QueueTransferProtocol = source.QueueTransferProtocol; this.UseActiveDirectory = source.UseActiveDirectory; } } protected internal override void InitializeFrom(BindingElement bindingElement) { base.InitializeFrom(bindingElement); MsmqTransportBindingElement binding = bindingElement as MsmqTransportBindingElement; this.MaxPoolSize = binding.MaxPoolSize; this.QueueTransferProtocol = binding.QueueTransferProtocol; this.UseActiveDirectory = binding.UseActiveDirectory; } } } // 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
- FormsAuthenticationTicket.cs
- TextElement.cs
- AllMembershipCondition.cs
- ToolTipService.cs
- OletxTransactionManager.cs
- MasterPageCodeDomTreeGenerator.cs
- XmlILConstructAnalyzer.cs
- EventListenerClientSide.cs
- RoutedEventArgs.cs
- ModuleElement.cs
- ListParagraph.cs
- WebPartChrome.cs
- DataGridViewCellStyleEditor.cs
- ObsoleteAttribute.cs
- CapabilitiesSection.cs
- mediaeventshelper.cs
- ScopelessEnumAttribute.cs
- DataGridRow.cs
- TextEditorSpelling.cs
- StringInfo.cs
- OLEDB_Enum.cs
- ComplusEndpointConfigContainer.cs
- initElementDictionary.cs
- ReadOnlyAttribute.cs
- KeyedHashAlgorithm.cs
- Guid.cs
- RubberbandSelector.cs
- SafeNativeMethods.cs
- GridEntryCollection.cs
- HtmlEmptyTagControlBuilder.cs
- ByeMessageApril2005.cs
- XmlSchemaAll.cs
- PriorityBindingExpression.cs
- TextViewElement.cs
- ErrorTableItemStyle.cs
- __ComObject.cs
- AtomPub10ServiceDocumentFormatter.cs
- ButtonField.cs
- MapPathBasedVirtualPathProvider.cs
- FontWeight.cs
- ScriptControlDescriptor.cs
- PlainXmlDeserializer.cs
- SchemaExporter.cs
- SocketException.cs
- IpcClientChannel.cs
- MasterPageBuildProvider.cs
- ValidatingReaderNodeData.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DefaultWorkflowSchedulerService.cs
- ListBindingConverter.cs
- SafeRightsManagementHandle.cs
- Intellisense.cs
- HttpRuntime.cs
- XmlNullResolver.cs
- GroupItem.cs
- SqlCommand.cs
- ImageSourceConverter.cs
- RequiredFieldValidator.cs
- QilLiteral.cs
- XmlSiteMapProvider.cs
- Tuple.cs
- PageRanges.cs
- MemberRelationshipService.cs
- WebServiceFault.cs
- DesignerAttribute.cs
- DivideByZeroException.cs
- TypeConverterHelper.cs
- ThreadExceptionDialog.cs
- DragEvent.cs
- DesignerHierarchicalDataSourceView.cs
- GradientBrush.cs
- _BufferOffsetSize.cs
- NodeFunctions.cs
- OperationFormatStyle.cs
- FileVersionInfo.cs
- DataGridViewTextBoxCell.cs
- MessageLogger.cs
- OrderedDictionary.cs
- NameValueConfigurationElement.cs
- ProcessHostFactoryHelper.cs
- WindowsBrush.cs
- DataGridrowEditEndingEventArgs.cs
- ConfigurationManagerHelperFactory.cs
- ContentPlaceHolder.cs
- DataGridViewRowPrePaintEventArgs.cs
- NonBatchDirectoryCompiler.cs
- OleCmdHelper.cs
- TitleStyle.cs
- ProfileSettings.cs
- TypeExtensionConverter.cs
- ColumnResizeAdorner.cs
- DbConnectionPoolGroupProviderInfo.cs
- ToolStripItemEventArgs.cs
- ColorAnimationBase.cs
- ExpressionConverter.cs
- HtmlWindow.cs
- ServiceHostingEnvironment.cs
- RequestCachePolicy.cs
- Boolean.cs
- LostFocusEventManager.cs