Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / NetMsmqSecurityElement.cs / 1 / NetMsmqSecurityElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.ServiceModel.Channels; using System.Globalization; using System.Net; using System.Net.Security; using System.ServiceModel; using System.ServiceModel.Security; using System.ComponentModel; public sealed partial class NetMsmqSecurityElement : ConfigurationElement { [ConfigurationProperty(ConfigurationStrings.Mode, DefaultValue = NetMsmqSecurity.DefaultMode)] [ServiceModelEnumValidator(typeof(SecurityModeHelper))] public NetMsmqSecurityMode Mode { get { return (NetMsmqSecurityMode)base[ConfigurationStrings.Mode]; } set { base[ConfigurationStrings.Mode] = value; } } [ConfigurationProperty(ConfigurationStrings.Transport)] public MsmqTransportSecurityElement Transport { get { return (MsmqTransportSecurityElement)base[ConfigurationStrings.Transport]; } } [ConfigurationProperty(ConfigurationStrings.Message)] public MessageSecurityOverMsmqElement Message { get { return (MessageSecurityOverMsmqElement)base[ConfigurationStrings.Message]; } } internal void ApplyConfiguration(NetMsmqSecurity security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } security.Mode = this.Mode; this.Transport.ApplyConfiguration(security.Transport); this.Message.ApplyConfiguration(security.Message); } internal void InitializeFrom(NetMsmqSecurity security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } this.Mode = security.Mode; this.Transport.InitializeFrom(security.Transport); this.Message.InitializeFrom(security.Message); } } } // 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
- SqlUdtInfo.cs
- WindowCollection.cs
- WebHttpBindingElement.cs
- DynamicRendererThreadManager.cs
- CodeCommentStatement.cs
- ToolStripPanelSelectionBehavior.cs
- ProcessThread.cs
- LicenseManager.cs
- IndexingContentUnit.cs
- EpmContentSerializer.cs
- SortQuery.cs
- TcpClientCredentialType.cs
- EmissiveMaterial.cs
- ProtocolElementCollection.cs
- WebServiceErrorEvent.cs
- ListDictionaryInternal.cs
- DesignerView.cs
- ConfigurationLocationCollection.cs
- IndexedString.cs
- DataStreamFromComStream.cs
- ClientApiGenerator.cs
- BigIntegerStorage.cs
- DocumentGridPage.cs
- _StreamFramer.cs
- SelectionEditor.cs
- PlainXmlSerializer.cs
- CharAnimationUsingKeyFrames.cs
- CompilerLocalReference.cs
- NegotiateStream.cs
- CatalogZoneBase.cs
- GcHandle.cs
- XamlClipboardData.cs
- EdmComplexPropertyAttribute.cs
- AuthorizationRule.cs
- AtomParser.cs
- EdmComplexPropertyAttribute.cs
- CqlQuery.cs
- ConfigXmlDocument.cs
- VisualStyleRenderer.cs
- InfiniteTimeSpanConverter.cs
- TagMapCollection.cs
- InstanceDataCollection.cs
- EdmTypeAttribute.cs
- XmlName.cs
- ArgumentException.cs
- SpotLight.cs
- DataGridViewDesigner.cs
- Root.cs
- StrokeCollectionDefaultValueFactory.cs
- FormViewPageEventArgs.cs
- DocumentXPathNavigator.cs
- ZoneLinkButton.cs
- AmbientValueAttribute.cs
- XMLSchema.cs
- FrameworkObject.cs
- XmlHierarchicalDataSourceView.cs
- ElementProxy.cs
- sqlser.cs
- SqlMultiplexer.cs
- EventLogPermission.cs
- HashAlgorithm.cs
- XmlValueConverter.cs
- HitTestDrawingContextWalker.cs
- AccessibleObject.cs
- OdbcTransaction.cs
- basenumberconverter.cs
- HttpResponse.cs
- BamlRecordHelper.cs
- MexServiceChannelBuilder.cs
- NullRuntimeConfig.cs
- TextServicesCompartment.cs
- MetadataItemCollectionFactory.cs
- SqlBinder.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- PKCS1MaskGenerationMethod.cs
- SelectorItemAutomationPeer.cs
- Byte.cs
- StyleSheetDesigner.cs
- PolyBezierSegment.cs
- shaperfactoryquerycacheentry.cs
- BaseParser.cs
- ActivityDesigner.cs
- AddInContractAttribute.cs
- LockedAssemblyCache.cs
- TraceHandler.cs
- ResourceCategoryAttribute.cs
- SmtpNegotiateAuthenticationModule.cs
- ValueConversionAttribute.cs
- QilInvokeLateBound.cs
- Helper.cs
- XmlDictionaryWriter.cs
- ThicknessConverter.cs
- MessageDecoder.cs
- figurelength.cs
- SelectionChangedEventArgs.cs
- BamlMapTable.cs
- SourceLineInfo.cs
- BaseTreeIterator.cs
- complextypematerializer.cs
- GetWinFXPath.cs