Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / HttpTransportSecurityElement.cs / 1 / HttpTransportSecurityElement.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 HttpTransportSecurityElement : ConfigurationElement { [ConfigurationProperty(ConfigurationStrings.ClientCredentialType, DefaultValue = HttpTransportSecurity.DefaultClientCredentialType)] [ServiceModelEnumValidator(typeof(HttpClientCredentialTypeHelper))] public HttpClientCredentialType ClientCredentialType { get { return (HttpClientCredentialType)base[ConfigurationStrings.ClientCredentialType]; } set { base[ConfigurationStrings.ClientCredentialType] = value; } } [ConfigurationProperty(ConfigurationStrings.ProxyCredentialType, DefaultValue = HttpTransportSecurity.DefaultProxyCredentialType)] [ServiceModelEnumValidator(typeof(HttpProxyCredentialTypeHelper))] public HttpProxyCredentialType ProxyCredentialType { get { return (HttpProxyCredentialType)base[ConfigurationStrings.ProxyCredentialType]; } set { base[ConfigurationStrings.ProxyCredentialType] = value; } } [ConfigurationProperty(ConfigurationStrings.Realm, DefaultValue = HttpTransportSecurity.DefaultRealm)] [StringValidator(MinLength = 0)] public string Realm { get { return (string)base[ConfigurationStrings.Realm]; } set { if (String.IsNullOrEmpty(value)) { value = String.Empty; } base[ConfigurationStrings.Realm] = value; } } internal void ApplyConfiguration(HttpTransportSecurity security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } security.ClientCredentialType = this.ClientCredentialType; security.ProxyCredentialType = this.ProxyCredentialType; security.Realm = this.Realm; } internal void InitializeFrom(HttpTransportSecurity security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } this.ClientCredentialType = security.ClientCredentialType; this.ProxyCredentialType = security.ProxyCredentialType; this.Realm = security.Realm; } } } // 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
- IncrementalReadDecoders.cs
- OleDbException.cs
- GridLength.cs
- InkCanvasAutomationPeer.cs
- LoginCancelEventArgs.cs
- TextDecoration.cs
- UIPropertyMetadata.cs
- BuildResultCache.cs
- HttpHandlerAction.cs
- Pair.cs
- xsdvalidator.cs
- MeasureData.cs
- RegistryPermission.cs
- Verify.cs
- FixedSOMFixedBlock.cs
- ResXResourceWriter.cs
- AuthenticationConfig.cs
- ConstructorArgumentAttribute.cs
- Stack.cs
- Figure.cs
- NameValueFileSectionHandler.cs
- DesignerUtils.cs
- WindowsSlider.cs
- ListSourceHelper.cs
- SqlSupersetValidator.cs
- QuadraticBezierSegment.cs
- EncryptedPackageFilter.cs
- ListViewSortEventArgs.cs
- ResourceSetExpression.cs
- XamlClipboardData.cs
- HttpStaticObjectsCollectionWrapper.cs
- InstanceHandleReference.cs
- ItemCollection.cs
- MailAddress.cs
- ListViewGroupItemCollection.cs
- DataService.cs
- RegexWorker.cs
- TrackBar.cs
- dbenumerator.cs
- BasePattern.cs
- XmlNodeReader.cs
- WebPartTransformerCollection.cs
- AspNetHostingPermission.cs
- MetadataUtilsSmi.cs
- WsdlBuildProvider.cs
- VisualProxy.cs
- ServiceOperationParameter.cs
- DocumentEventArgs.cs
- Pkcs9Attribute.cs
- updatecommandorderer.cs
- DropShadowEffect.cs
- ServicePerformanceCounters.cs
- WindowInteractionStateTracker.cs
- AbsoluteQuery.cs
- PropertyNames.cs
- SplashScreen.cs
- MessageSecurityVersion.cs
- ArgumentException.cs
- WSSecureConversationFeb2005.cs
- LayoutTable.cs
- ExpressionBuilder.cs
- dbdatarecord.cs
- followingquery.cs
- ClientBuildManager.cs
- DesignSurfaceManager.cs
- RelationshipSet.cs
- RectValueSerializer.cs
- XmlSerializerAssemblyAttribute.cs
- UserControl.cs
- Win32Interop.cs
- XmlMapping.cs
- GetPageCompletedEventArgs.cs
- TypeSemantics.cs
- TransformGroup.cs
- ServerIdentity.cs
- KeyFrames.cs
- TrackingRecord.cs
- _ContextAwareResult.cs
- SuppressMessageAttribute.cs
- MenuItemBindingCollection.cs
- PaperSource.cs
- DataColumn.cs
- CodeTypeReferenceCollection.cs
- CompilerErrorCollection.cs
- XmlObjectSerializerWriteContext.cs
- AlphaSortedEnumConverter.cs
- StylesEditorDialog.cs
- WebPartManager.cs
- StylusPointPropertyInfoDefaults.cs
- ComponentChangingEvent.cs
- COAUTHIDENTITY.cs
- PeerApplicationLaunchInfo.cs
- QueryPageSettingsEventArgs.cs
- MasterPage.cs
- ThreadAttributes.cs
- Light.cs
- BamlResourceSerializer.cs
- PropertyGridCommands.cs
- EncodingInfo.cs
- IPPacketInformation.cs