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
- XmlElementList.cs
- _RequestCacheProtocol.cs
- DNS.cs
- UIElementIsland.cs
- BamlLocalizer.cs
- SectionInput.cs
- SqlClientWrapperSmiStreamChars.cs
- UniqueEventHelper.cs
- ModelEditingScope.cs
- TableLayoutStyleCollection.cs
- FlowSwitchLink.cs
- Graph.cs
- FilterException.cs
- coordinator.cs
- UnsafeNativeMethods.cs
- XmlSchemaGroupRef.cs
- GcSettings.cs
- DataServiceConfiguration.cs
- FaultReason.cs
- ImageBrush.cs
- DiscreteKeyFrames.cs
- SingleTagSectionHandler.cs
- regiisutil.cs
- HighContrastHelper.cs
- PointAnimation.cs
- OutputScopeManager.cs
- DataGridViewRowsRemovedEventArgs.cs
- XPathLexer.cs
- DBSchemaTable.cs
- PropertyPathConverter.cs
- GACMembershipCondition.cs
- XmlSerializer.cs
- SystemIcmpV6Statistics.cs
- SortableBindingList.cs
- SiteMapPath.cs
- WebHttpSecurity.cs
- mda.cs
- OledbConnectionStringbuilder.cs
- Region.cs
- InkCanvasSelectionAdorner.cs
- AppDomainFactory.cs
- ListBoxAutomationPeer.cs
- TypeConstant.cs
- SelectedGridItemChangedEvent.cs
- SerializationSectionGroup.cs
- SqlDataSourceView.cs
- EntryWrittenEventArgs.cs
- XmlDomTextWriter.cs
- CategoryAttribute.cs
- ResolvedKeyFrameEntry.cs
- PageTextBox.cs
- SortFieldComparer.cs
- TriState.cs
- ProtocolViolationException.cs
- SamlAction.cs
- CompiledRegexRunner.cs
- SqlWriter.cs
- MenuItem.cs
- HtmlMeta.cs
- PrinterUnitConvert.cs
- QilGenerator.cs
- GAC.cs
- DispatcherExceptionFilterEventArgs.cs
- DoubleAnimationBase.cs
- DocumentGridContextMenu.cs
- CroppedBitmap.cs
- InternalPolicyElement.cs
- GraphicsPathIterator.cs
- ViewGenResults.cs
- CharacterHit.cs
- NoneExcludedImageIndexConverter.cs
- ToolStripDesignerAvailabilityAttribute.cs
- PageAsyncTaskManager.cs
- BitmapInitialize.cs
- Interfaces.cs
- DesignerVerbCollection.cs
- RuleSettings.cs
- StackOverflowException.cs
- FixedSOMImage.cs
- LineGeometry.cs
- ProxyGenerator.cs
- EventData.cs
- ActiveDocumentEvent.cs
- SequentialWorkflowHeaderFooter.cs
- EntityConnection.cs
- EntityEntry.cs
- MatrixCamera.cs
- AppDomainGrammarProxy.cs
- ToolStripDropDown.cs
- ProxyDataContractResolver.cs
- FilterRepeater.cs
- SimplePropertyEntry.cs
- CodeTypeDeclarationCollection.cs
- Brush.cs
- RangeValuePatternIdentifiers.cs
- DataGridRowEventArgs.cs
- ServiceContractGenerator.cs
- PostBackOptions.cs
- CodeAttributeDeclaration.cs
- ObjectTag.cs