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
- WebPartEventArgs.cs
- ExceptionHandlerDesigner.cs
- PackUriHelper.cs
- GeometryCombineModeValidation.cs
- RbTree.cs
- EmptyCollection.cs
- CharacterBufferReference.cs
- LongValidatorAttribute.cs
- PolyBezierSegmentFigureLogic.cs
- RecordBuilder.cs
- LinkLabel.cs
- CodeChecksumPragma.cs
- ByteBufferPool.cs
- QualifiedCellIdBoolean.cs
- DateTimeFormatInfoScanner.cs
- OdbcConnection.cs
- NullReferenceException.cs
- StateBag.cs
- ObjectCloneHelper.cs
- StoreContentChangedEventArgs.cs
- TransformerTypeCollection.cs
- TraceContext.cs
- SQLDecimal.cs
- DynamicILGenerator.cs
- CqlLexer.cs
- CorrelationValidator.cs
- ActivityPropertyReference.cs
- SecureConversationServiceElement.cs
- DataGridViewRowConverter.cs
- WindowsUpDown.cs
- CompiledELinqQueryState.cs
- PieceNameHelper.cs
- UriParserTemplates.cs
- ErrorWrapper.cs
- Matrix3DValueSerializer.cs
- Constraint.cs
- ObjectAnimationBase.cs
- CommandBindingCollection.cs
- SamlAssertion.cs
- CodeConstructor.cs
- SmtpNegotiateAuthenticationModule.cs
- WeakHashtable.cs
- CodeAttachEventStatement.cs
- XmlCustomFormatter.cs
- DataServiceQueryProvider.cs
- DataGridHeaderBorder.cs
- Attribute.cs
- AuthenticationException.cs
- DynamicMethod.cs
- ConnectionConsumerAttribute.cs
- NavigationService.cs
- HuffmanTree.cs
- SQLBinaryStorage.cs
- PrePrepareMethodAttribute.cs
- AppModelKnownContentFactory.cs
- DrawingContextWalker.cs
- OracleRowUpdatingEventArgs.cs
- DeviceContext2.cs
- SafeRegistryHandle.cs
- SecurityTokenValidationException.cs
- DataGridLinkButton.cs
- ScriptHandlerFactory.cs
- FieldInfo.cs
- KnownAssembliesSet.cs
- WindowsProgressbar.cs
- XmlAttributeOverrides.cs
- ConstraintEnumerator.cs
- ContextMenu.cs
- OutputCacheProfileCollection.cs
- PropertyGeneratedEventArgs.cs
- IntPtr.cs
- PixelFormat.cs
- MailWebEventProvider.cs
- ScalarRestriction.cs
- SplashScreen.cs
- MULTI_QI.cs
- compensatingcollection.cs
- MatrixCamera.cs
- ToolStripSeparatorRenderEventArgs.cs
- TreeBuilderXamlTranslator.cs
- DocumentGridContextMenu.cs
- ProcessInfo.cs
- CodeDomDesignerLoader.cs
- IApplicationTrustManager.cs
- RefreshEventArgs.cs
- BamlTreeMap.cs
- LicenseManager.cs
- DoubleKeyFrameCollection.cs
- SafeNativeMemoryHandle.cs
- CloseCryptoHandleRequest.cs
- HostingEnvironmentException.cs
- UIElementParaClient.cs
- ToolStripDropTargetManager.cs
- SmtpFailedRecipientException.cs
- SqlTriggerContext.cs
- PrintingPermissionAttribute.cs
- SelectionEditor.cs
- InlineObject.cs
- ToolTipService.cs
- EventLogger.cs