Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / WSHttpTransportSecurityElement.cs / 1 / WSHttpTransportSecurityElement.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 WSHttpTransportSecurityElement : ConfigurationElement { [ConfigurationProperty(ConfigurationStrings.ClientCredentialType, DefaultValue = HttpClientCredentialType.Windows)] [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
- Int32KeyFrameCollection.cs
- LiteralText.cs
- ClientRoleProvider.cs
- ObjectConverter.cs
- ObjectManager.cs
- ListBoxChrome.cs
- CustomErrorCollection.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- RC2.cs
- HMACSHA256.cs
- BindingContext.cs
- ToolStripGripRenderEventArgs.cs
- Border.cs
- _SingleItemRequestCache.cs
- StreamInfo.cs
- Helpers.cs
- lengthconverter.cs
- ScrollEvent.cs
- DbProviderFactoriesConfigurationHandler.cs
- RelationshipDetailsRow.cs
- Material.cs
- ObsoleteAttribute.cs
- FormViewModeEventArgs.cs
- XmlSchemaException.cs
- TypeUtil.cs
- _Events.cs
- XmlElementList.cs
- EmptyEnumerator.cs
- XmlTextReader.cs
- StylusButtonEventArgs.cs
- TextEditorThreadLocalStore.cs
- WindowsUpDown.cs
- TemplatePropertyEntry.cs
- PseudoWebRequest.cs
- WindowsFormsSynchronizationContext.cs
- HostedBindingBehavior.cs
- PagedDataSource.cs
- UnmanagedMarshal.cs
- CqlBlock.cs
- BooleanAnimationUsingKeyFrames.cs
- MultiBinding.cs
- IDReferencePropertyAttribute.cs
- ValueType.cs
- FilteredSchemaElementLookUpTable.cs
- ping.cs
- Utils.cs
- SpecialFolderEnumConverter.cs
- WbemProvider.cs
- ScriptRegistrationManager.cs
- ConfigsHelper.cs
- OutKeywords.cs
- ListViewItemSelectionChangedEvent.cs
- DataGridViewEditingControlShowingEventArgs.cs
- Calendar.cs
- _NativeSSPI.cs
- baseshape.cs
- UriScheme.cs
- Bezier.cs
- storepermission.cs
- UserPreferenceChangingEventArgs.cs
- StringUtil.cs
- DiscoveryDocumentReference.cs
- ByteStorage.cs
- SecurityUtils.cs
- HwndTarget.cs
- WCFModelStrings.Designer.cs
- QilTargetType.cs
- EmbeddedMailObject.cs
- DataGridViewComboBoxCell.cs
- PropertyToken.cs
- indexingfiltermarshaler.cs
- IPipelineRuntime.cs
- DataGridToolTip.cs
- TransformedBitmap.cs
- DefaultExpressionVisitor.cs
- webeventbuffer.cs
- PartialCachingControl.cs
- Int64KeyFrameCollection.cs
- StrongName.cs
- ControllableStoryboardAction.cs
- WebPartVerbsEventArgs.cs
- FileSystemEventArgs.cs
- RegexBoyerMoore.cs
- SchemaCollectionPreprocessor.cs
- MenuScrollingVisibilityConverter.cs
- BufferedGraphicsManager.cs
- SuppressIldasmAttribute.cs
- MissingManifestResourceException.cs
- FileDocument.cs
- DataSourceXmlClassAttribute.cs
- TogglePattern.cs
- EntityTypeEmitter.cs
- OleDbPermission.cs
- EventNotify.cs
- FocusChangedEventArgs.cs
- PropertyDescriptorComparer.cs
- Message.cs
- QueueException.cs
- GroupItem.cs
- RawStylusInputCustomData.cs