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
- MexHttpsBindingCollectionElement.cs
- NumericUpDownAcceleration.cs
- DataGridViewComboBoxColumn.cs
- TemplateBindingExpression.cs
- GeneralTransform.cs
- DataSetUtil.cs
- ControlHelper.cs
- SystemUnicastIPAddressInformation.cs
- ValidatingReaderNodeData.cs
- SQLMoney.cs
- DatagramAdapter.cs
- RenderData.cs
- HandleCollector.cs
- SqlRecordBuffer.cs
- InlineCollection.cs
- HtmlSelect.cs
- TypeSystem.cs
- IntegerValidator.cs
- ZipIOCentralDirectoryFileHeader.cs
- SizeChangedEventArgs.cs
- SkinBuilder.cs
- XmlElementAttributes.cs
- ChildChangedEventArgs.cs
- BindingUtils.cs
- StorageSetMapping.cs
- TextStore.cs
- ContactManager.cs
- RemoteCryptoSignHashRequest.cs
- StandardToolWindows.cs
- AlgoModule.cs
- XmlWellformedWriter.cs
- SqlTypeConverter.cs
- ToolStripRendererSwitcher.cs
- InfoCardUIAgent.cs
- ReceiveMessageContent.cs
- DynamicDataResources.Designer.cs
- ProvidersHelper.cs
- DesignerContextDescriptor.cs
- EntityDataSourceDesigner.cs
- _CookieModule.cs
- HtmlInputRadioButton.cs
- TdsParserHelperClasses.cs
- _SSPIWrapper.cs
- BlobPersonalizationState.cs
- ClientBuildManager.cs
- StatusBarItem.cs
- GreaterThanOrEqual.cs
- ProcessThreadCollection.cs
- XmlParserContext.cs
- HttpDictionary.cs
- KeyValueConfigurationElement.cs
- DataQuery.cs
- SpecialNameAttribute.cs
- XmlImplementation.cs
- ArrayElementGridEntry.cs
- MaskedTextProvider.cs
- SoapEnvelopeProcessingElement.cs
- StringWriter.cs
- IdentifierCollection.cs
- ApplyImportsAction.cs
- FilteredDataSetHelper.cs
- DataView.cs
- DigestTraceRecordHelper.cs
- BinaryNode.cs
- FrameworkContentElement.cs
- TileBrush.cs
- cryptoapiTransform.cs
- ConnectionManagementElementCollection.cs
- StyleTypedPropertyAttribute.cs
- RuleSetDialog.Designer.cs
- BeginGetFileNameFromUserRequest.cs
- AttachmentService.cs
- ToolStripStatusLabel.cs
- SR.cs
- ObjectDataSourceView.cs
- CompressedStack.cs
- GroupBox.cs
- MultipleViewProviderWrapper.cs
- DataSysAttribute.cs
- MetadataItem_Static.cs
- _PooledStream.cs
- SamlSubjectStatement.cs
- WSDualHttpBinding.cs
- MultipleViewPattern.cs
- DocumentSequenceHighlightLayer.cs
- LocalFileSettingsProvider.cs
- GlobalDataBindingHandler.cs
- SqlPersonalizationProvider.cs
- ObjectPropertyMapping.cs
- MetadataItem_Static.cs
- ContractType.cs
- MultipleViewPattern.cs
- GridViewRowPresenterBase.cs
- TimelineGroup.cs
- SqlProcedureAttribute.cs
- listitem.cs
- CodeGenerationManager.cs
- ObjectQuery.cs
- DesignTimeDataBinding.cs
- BehaviorDragDropEventArgs.cs