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
- altserialization.cs
- COM2PropertyBuilderUITypeEditor.cs
- MsmqAuthenticationMode.cs
- ChannelManagerBase.cs
- ApplicationSecurityManager.cs
- VBCodeProvider.cs
- InvokeFunc.cs
- TableChangeProcessor.cs
- userdatakeys.cs
- CommandConverter.cs
- SafeSecurityHandles.cs
- TemplateControl.cs
- DockAndAnchorLayout.cs
- EdmToObjectNamespaceMap.cs
- GridViewCellAutomationPeer.cs
- ParenthesizePropertyNameAttribute.cs
- SelectionRangeConverter.cs
- PtsHost.cs
- StringBlob.cs
- BufferedGraphicsContext.cs
- MachineKeySection.cs
- OdbcStatementHandle.cs
- ImportRequest.cs
- ProfileGroupSettingsCollection.cs
- Point3DAnimation.cs
- StylusDownEventArgs.cs
- ExternalException.cs
- TraceSection.cs
- MouseCaptureWithinProperty.cs
- ControlValuePropertyAttribute.cs
- XamlReader.cs
- KeyGestureValueSerializer.cs
- LogLogRecordHeader.cs
- WindowsFormsSynchronizationContext.cs
- WsatEtwTraceListener.cs
- BitStack.cs
- ControlValuePropertyAttribute.cs
- Image.cs
- TabControlCancelEvent.cs
- DBPropSet.cs
- connectionpool.cs
- HtmlInputPassword.cs
- UndoUnit.cs
- MaskedTextProvider.cs
- HttpTransportBindingElement.cs
- QilReplaceVisitor.cs
- peersecurityelement.cs
- Int32KeyFrameCollection.cs
- RoutedUICommand.cs
- DataGridViewRowStateChangedEventArgs.cs
- QilDataSource.cs
- FormatterConverter.cs
- BaseAppDomainProtocolHandler.cs
- TrackingProfileDeserializationException.cs
- EntityParameter.cs
- wgx_render.cs
- SharedPerformanceCounter.cs
- MethodCallConverter.cs
- VectorCollectionValueSerializer.cs
- EventLogEntry.cs
- SystemResourceHost.cs
- NestedContainer.cs
- WebPartDisplayMode.cs
- GiveFeedbackEvent.cs
- ConfigXmlCDataSection.cs
- BindingEntityInfo.cs
- TimeStampChecker.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- EmptyEnumerator.cs
- XmlDownloadManager.cs
- ActiveDesignSurfaceEvent.cs
- TableDetailsCollection.cs
- ColorMatrix.cs
- InternalResources.cs
- ControlsConfig.cs
- CursorEditor.cs
- WindowsContainer.cs
- WindowsToolbar.cs
- TableLayoutStyle.cs
- CompositionAdorner.cs
- ButtonFieldBase.cs
- Dynamic.cs
- EventLog.cs
- WorkflowQueuingService.cs
- XmlAttributeCollection.cs
- XsltSettings.cs
- StatusStrip.cs
- CursorInteropHelper.cs
- StructuredTypeInfo.cs
- EasingKeyFrames.cs
- Baml6ConstructorInfo.cs
- ConnectionStringsSection.cs
- QilDataSource.cs
- SetUserLanguageRequest.cs
- AppSettingsReader.cs
- TimeSpanValidatorAttribute.cs
- XPathPatternBuilder.cs
- DetailsViewUpdatedEventArgs.cs
- StrongTypingException.cs
- FileDialog.cs