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
- Region.cs
- IndexOutOfRangeException.cs
- XmlLanguage.cs
- TraceUtility.cs
- ArrangedElementCollection.cs
- ColorAnimation.cs
- XmlDictionaryReader.cs
- XmlNodeChangedEventArgs.cs
- PanelDesigner.cs
- DataPagerCommandEventArgs.cs
- WSSecureConversationFeb2005.cs
- HierarchicalDataBoundControl.cs
- VisualStateGroup.cs
- EmptyControlCollection.cs
- OleDbDataAdapter.cs
- XhtmlBasicObjectListAdapter.cs
- UserUseLicenseDictionaryLoader.cs
- SmtpException.cs
- ProtocolsConfiguration.cs
- SoapExtensionReflector.cs
- BrowserCapabilitiesFactory.cs
- BitStream.cs
- OdbcConnection.cs
- BitSet.cs
- XhtmlConformanceSection.cs
- XmlDataSource.cs
- WebBrowserPermission.cs
- CatalogPartChrome.cs
- XmlSchema.cs
- SystemNetHelpers.cs
- ColorTransform.cs
- StyleSheetComponentEditor.cs
- Margins.cs
- Vector3D.cs
- ObjectDataProvider.cs
- ReadOnlyMetadataCollection.cs
- DynamicDocumentPaginator.cs
- RegistryDataKey.cs
- FrameworkPropertyMetadata.cs
- HwndSourceKeyboardInputSite.cs
- ListDictionary.cs
- ItemsPresenter.cs
- diagnosticsswitches.cs
- Variable.cs
- PartitionedStream.cs
- GetWinFXPath.cs
- HtmlTextArea.cs
- StaticExtensionConverter.cs
- ValidationErrorInfo.cs
- AppSecurityManager.cs
- UpdateException.cs
- EntityUtil.cs
- FormsAuthenticationConfiguration.cs
- DiscoveryDocumentSearchPattern.cs
- Italic.cs
- CipherData.cs
- JournalEntry.cs
- TreeViewTemplateSelector.cs
- XmlSerializableWriter.cs
- HttpCacheParams.cs
- MergePropertyDescriptor.cs
- HttpsTransportBindingElement.cs
- DataGridViewSelectedColumnCollection.cs
- QuaternionConverter.cs
- PathFigureCollection.cs
- UIElementCollection.cs
- ManifestSignedXml.cs
- ChannelEndpointElementCollection.cs
- DataPointer.cs
- MaskInputRejectedEventArgs.cs
- CompiledELinqQueryState.cs
- SystemTcpStatistics.cs
- CommandEventArgs.cs
- ReadContentAsBinaryHelper.cs
- CertificateManager.cs
- AspCompat.cs
- CodeVariableDeclarationStatement.cs
- CodeAttachEventStatement.cs
- BitmapFrameEncode.cs
- TextDecoration.cs
- AuthStoreRoleProvider.cs
- Guid.cs
- RuntimeComponentFilter.cs
- PresentationTraceSources.cs
- BeginEvent.cs
- ArrayElementGridEntry.cs
- ComboBoxRenderer.cs
- BooleanProjectedSlot.cs
- CapabilitiesSection.cs
- ListViewHitTestInfo.cs
- DataGridViewSelectedCellCollection.cs
- ToolStripGripRenderEventArgs.cs
- CodeTypeReference.cs
- DynamicRendererThreadManager.cs
- XmlObjectSerializerReadContext.cs
- ComEventsSink.cs
- Interlocked.cs
- EventWaitHandle.cs
- PopupEventArgs.cs
- DoubleLink.cs