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
- AssemblyCacheEntry.cs
- ArrangedElement.cs
- RawTextInputReport.cs
- DataGridViewImageCell.cs
- HttpPostProtocolReflector.cs
- ObjectPersistData.cs
- DrawingVisualDrawingContext.cs
- DispatcherSynchronizationContext.cs
- XmlQueryStaticData.cs
- Matrix3DConverter.cs
- CompilerState.cs
- InvokeMethodActivity.cs
- Vector.cs
- InsufficientMemoryException.cs
- TdsEnums.cs
- DBDataPermissionAttribute.cs
- TracingConnection.cs
- DrawTreeNodeEventArgs.cs
- Assembly.cs
- Input.cs
- DesignerTransaction.cs
- ActiveXHelper.cs
- InternalPolicyElement.cs
- VisualStyleTypesAndProperties.cs
- FlowDocumentPageViewerAutomationPeer.cs
- StatusBar.cs
- FlowLayoutPanel.cs
- ImpersonationContext.cs
- XamlStyleSerializer.cs
- HttpListenerException.cs
- AnnouncementSendsAsyncResult.cs
- OdbcErrorCollection.cs
- BCLDebug.cs
- SequenceDesigner.cs
- WsdlBuildProvider.cs
- EntityDataSource.cs
- ItemCheckedEvent.cs
- CompiledScopeCriteria.cs
- Mapping.cs
- SqlOuterApplyReducer.cs
- VerticalConnector.xaml.cs
- TypeDescriptionProvider.cs
- XPathSelfQuery.cs
- ProgressBar.cs
- XmlSchemaGroup.cs
- TableRowGroupCollection.cs
- QueryExpr.cs
- WindowsListViewItemStartMenu.cs
- RequestCacheManager.cs
- XmlNullResolver.cs
- ModelTypeConverter.cs
- FontEmbeddingManager.cs
- RoutedCommand.cs
- PipelineModuleStepContainer.cs
- RemoteWebConfigurationHost.cs
- WebConfigurationManager.cs
- DebugView.cs
- SamlAction.cs
- HttpClientProtocol.cs
- XmlSchemaComplexContent.cs
- SqlUdtInfo.cs
- WindowsTreeView.cs
- HelpInfo.cs
- WebDisplayNameAttribute.cs
- SettingsContext.cs
- shaperfactory.cs
- ExceptionUtil.cs
- NativeWindow.cs
- ResourcesChangeInfo.cs
- XPathParser.cs
- TextEffect.cs
- StatusBarPanel.cs
- DBSchemaTable.cs
- ProcessModelInfo.cs
- SmtpFailedRecipientsException.cs
- WebPartConnectVerb.cs
- CommandTreeTypeHelper.cs
- PropertyBuilder.cs
- DecoratedNameAttribute.cs
- PathGeometry.cs
- ResolvedKeyFrameEntry.cs
- TextDecoration.cs
- NonceCache.cs
- DynamicDataExtensions.cs
- RevocationPoint.cs
- XamlInt32CollectionSerializer.cs
- COM2ExtendedUITypeEditor.cs
- MimeTypeMapper.cs
- Guid.cs
- DataGridViewIntLinkedList.cs
- SmtpReplyReader.cs
- WindowClosedEventArgs.cs
- DeploymentExceptionMapper.cs
- Rectangle.cs
- DataBoundControl.cs
- Int16KeyFrameCollection.cs
- HtmlSelectionListAdapter.cs
- QilGenerator.cs
- CheckBox.cs
- FunctionQuery.cs