Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / NetMsmqBindingElement.cs / 1 / NetMsmqBindingElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.ServiceModel; using System.Globalization; using System.ServiceModel.Security; using System.ServiceModel.Channels; using System.Net.Security; public partial class NetMsmqBindingElement : MsmqBindingElementBase { public NetMsmqBindingElement(string name) : base(name) { } public NetMsmqBindingElement() : this(null) { } protected override Type BindingElementType { get { return typeof(NetMsmqBinding); } } [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.ReaderQuotas)] public XmlDictionaryReaderQuotasElement ReaderQuotas { get { return (XmlDictionaryReaderQuotasElement) base[ConfigurationStrings.ReaderQuotas]; } } [ConfigurationProperty(ConfigurationStrings.MaxBufferPoolSize, DefaultValue = TransportDefaults.MaxBufferPoolSize)] [LongValidator(MinValue = 0)] public long MaxBufferPoolSize { get {return (long) base[ConfigurationStrings.MaxBufferPoolSize]; } set {base[ConfigurationStrings.MaxBufferPoolSize] = value; } } [ConfigurationProperty(ConfigurationStrings.Security)] public NetMsmqSecurityElement Security { get { return (NetMsmqSecurityElement)base[ConfigurationStrings.Security]; } } [ConfigurationProperty(ConfigurationStrings.UseActiveDirectory, DefaultValue = MsmqDefaults.UseActiveDirectory)] public bool UseActiveDirectory { get {return (bool) base[ConfigurationStrings.UseActiveDirectory]; } set {base[ConfigurationStrings.UseActiveDirectory] = value; } } protected internal override void InitializeFrom(Binding binding) { base.InitializeFrom(binding); NetMsmqBinding npmBinding = (NetMsmqBinding) binding; this.MaxBufferPoolSize = npmBinding.MaxBufferPoolSize; this.QueueTransferProtocol = npmBinding.QueueTransferProtocol; this.UseActiveDirectory = npmBinding.UseActiveDirectory; this.Security.InitializeFrom(npmBinding.Security); this.ReaderQuotas.InitializeFrom(npmBinding.ReaderQuotas); } protected override void OnApplyConfiguration(Binding binding) { base.OnApplyConfiguration(binding); NetMsmqBinding npmBinding = (NetMsmqBinding) binding; npmBinding.MaxBufferPoolSize = this.MaxBufferPoolSize; npmBinding.QueueTransferProtocol = this.QueueTransferProtocol; npmBinding.UseActiveDirectory = this.UseActiveDirectory; this.Security.ApplyConfiguration(npmBinding.Security); this.ReaderQuotas.ApplyConfiguration(npmBinding.ReaderQuotas); } } } // 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
- MouseGestureValueSerializer.cs
- DPTypeDescriptorContext.cs
- Select.cs
- UIElementPropertyUndoUnit.cs
- ParameterModifier.cs
- EventDriven.cs
- EntitySqlQueryCacheEntry.cs
- FlowDecisionLabelFeature.cs
- Label.cs
- ObjectMemberMapping.cs
- Win32Native.cs
- EnumType.cs
- CryptoApi.cs
- StringValidatorAttribute.cs
- CodeTryCatchFinallyStatement.cs
- ProtocolViolationException.cs
- SimpleMailWebEventProvider.cs
- NativeMethods.cs
- TriggerAction.cs
- LineProperties.cs
- FieldBuilder.cs
- TableAdapterManagerGenerator.cs
- PeerMessageDispatcher.cs
- DurableErrorHandler.cs
- ContractMapping.cs
- DiagnosticEventProvider.cs
- IntegerValidatorAttribute.cs
- SendKeys.cs
- WebServiceErrorEvent.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ProcessMessagesAsyncResult.cs
- DesignerTransactionCloseEvent.cs
- FocusTracker.cs
- FormatStringEditor.cs
- NativeMethods.cs
- EventMappingSettings.cs
- EntityDataSourceChangingEventArgs.cs
- XmlNavigatorStack.cs
- OutputCacheSettingsSection.cs
- DataChangedEventManager.cs
- FlowLayoutPanel.cs
- ObjectDataSourceEventArgs.cs
- httpapplicationstate.cs
- ActivitiesCollection.cs
- Selector.cs
- TypeInfo.cs
- SimpleWorkerRequest.cs
- XamlParser.cs
- SystemDropShadowChrome.cs
- ConfigUtil.cs
- MetricEntry.cs
- KoreanCalendar.cs
- ScriptControlManager.cs
- GenericPrincipal.cs
- TdsRecordBufferSetter.cs
- CharEnumerator.cs
- HitTestResult.cs
- BuildProviderUtils.cs
- DataServiceQueryOfT.cs
- NumberSubstitution.cs
- StorageEndPropertyMapping.cs
- MultiAsyncResult.cs
- ImageCodecInfo.cs
- DictionarySectionHandler.cs
- StorageEntityContainerMapping.cs
- InvalidWMPVersionException.cs
- BooleanSwitch.cs
- Soap12ProtocolReflector.cs
- ManagedWndProcTracker.cs
- DetailsViewPagerRow.cs
- Fonts.cs
- QueryResponse.cs
- ViewgenContext.cs
- ImmutablePropertyDescriptorGridEntry.cs
- Margins.cs
- CommandPlan.cs
- DataGrid.cs
- LoginViewDesigner.cs
- SmtpDigestAuthenticationModule.cs
- ActiveXSite.cs
- LogManagementAsyncResult.cs
- Propagator.JoinPropagator.cs
- X509Utils.cs
- TcpActivation.cs
- DataGridViewRowCollection.cs
- SimpleBitVector32.cs
- WindowsTab.cs
- ProcessHost.cs
- WindowsTokenRoleProvider.cs
- MonitorWrapper.cs
- HttpRawResponse.cs
- DEREncoding.cs
- FilterableData.cs
- ButtonStandardAdapter.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- LogWriteRestartAreaAsyncResult.cs
- GlyphTypeface.cs
- JournalNavigationScope.cs
- InputLanguageProfileNotifySink.cs
- CallbackBehaviorAttribute.cs