Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / WSHttpSecurityElement.cs / 1 / WSHttpSecurityElement.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 WSHttpSecurityElement : ConfigurationElement { [ConfigurationProperty(ConfigurationStrings.Mode, DefaultValue = WSHttpSecurity.DefaultMode)] [ServiceModelEnumValidator(typeof(SecurityModeHelper))] public SecurityMode Mode { get { return (SecurityMode)base[ConfigurationStrings.Mode]; } set { base[ConfigurationStrings.Mode] = value; } } [ConfigurationProperty(ConfigurationStrings.Transport)] public WSHttpTransportSecurityElement Transport { get { return (WSHttpTransportSecurityElement)base[ConfigurationStrings.Transport]; } } [ConfigurationProperty(ConfigurationStrings.Message)] public NonDualMessageSecurityOverHttpElement Message { get { return (NonDualMessageSecurityOverHttpElement)base[ConfigurationStrings.Message]; } } internal void ApplyConfiguration(WSHttpSecurity 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(WSHttpSecurity 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
- UInt64Converter.cs
- SecurityPermission.cs
- MsmqTransportElement.cs
- __Error.cs
- Rect.cs
- BrowserPolicyValidator.cs
- Reference.cs
- XmlLanguageConverter.cs
- StateItem.cs
- DocumentGridPage.cs
- ObjectDataSourceStatusEventArgs.cs
- Events.cs
- TreeView.cs
- XmlnsCache.cs
- ImmutablePropertyDescriptorGridEntry.cs
- SimpleLine.cs
- Assembly.cs
- MarkerProperties.cs
- ProfileGroupSettingsCollection.cs
- UniqueCodeIdentifierScope.cs
- WebMessageFormatHelper.cs
- PtsHelper.cs
- TextTrailingCharacterEllipsis.cs
- PolicyLevel.cs
- Ports.cs
- CustomTypeDescriptor.cs
- ApplicationManager.cs
- TripleDESCryptoServiceProvider.cs
- SatelliteContractVersionAttribute.cs
- BamlRecordHelper.cs
- ThrowHelper.cs
- QueryException.cs
- HiddenFieldDesigner.cs
- LicFileLicenseProvider.cs
- BinaryParser.cs
- __Filters.cs
- FloaterParagraph.cs
- GlobalAllocSafeHandle.cs
- UpDownEvent.cs
- DataGridViewButtonCell.cs
- CompilerGeneratedAttribute.cs
- AggregateNode.cs
- RoutingExtension.cs
- XmlStreamStore.cs
- XpsStructure.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- InstanceValue.cs
- ListBindableAttribute.cs
- AuthenticatingEventArgs.cs
- LineServices.cs
- ObjectConverter.cs
- WebPartCloseVerb.cs
- ZoneLinkButton.cs
- MimeWriter.cs
- ButtonAutomationPeer.cs
- RbTree.cs
- ExpressionWriter.cs
- SectionXmlInfo.cs
- FollowerQueueCreator.cs
- EntityConnection.cs
- ContextDataSourceContextData.cs
- CheckBoxAutomationPeer.cs
- SystemIPInterfaceStatistics.cs
- Panel.cs
- MdiWindowListItemConverter.cs
- LinkLabelLinkClickedEvent.cs
- WindowsEditBoxRange.cs
- XmlFormatExtensionPointAttribute.cs
- WindowsGrip.cs
- ActiveDocumentEvent.cs
- AnnotationAuthorChangedEventArgs.cs
- TableStyle.cs
- SkewTransform.cs
- ReliableRequestSessionChannel.cs
- ReadWriteObjectLock.cs
- ServiceRoute.cs
- HtmlContainerControl.cs
- FilteredReadOnlyMetadataCollection.cs
- ProtocolsConfigurationEntry.cs
- UnmanagedMemoryStream.cs
- LogEntryHeaderSerializer.cs
- AspCompat.cs
- FixedSOMTableRow.cs
- LinqDataSourceView.cs
- TextEndOfParagraph.cs
- ClientUrlResolverWrapper.cs
- EnvelopeVersion.cs
- Speller.cs
- ReadOnlyDataSource.cs
- SizeAnimationClockResource.cs
- CmsInterop.cs
- StyleConverter.cs
- FontInfo.cs
- InstanceOwnerQueryResult.cs
- ColorAnimationUsingKeyFrames.cs
- RequestBringIntoViewEventArgs.cs
- TextEndOfSegment.cs
- RuntimeResourceSet.cs
- CollectionsUtil.cs
- ProvidePropertyAttribute.cs