Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / TcpTransportSecurityElement.cs / 1 / TcpTransportSecurityElement.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 TcpTransportSecurityElement : ConfigurationElement { [ConfigurationProperty(ConfigurationStrings.ClientCredentialType, DefaultValue = TcpTransportSecurity.DefaultClientCredentialType)] [ServiceModelEnumValidator(typeof(TcpClientCredentialTypeHelper))] public TcpClientCredentialType ClientCredentialType { get { return (TcpClientCredentialType)base[ConfigurationStrings.ClientCredentialType]; } set { base[ConfigurationStrings.ClientCredentialType] = value; } } [ConfigurationProperty(ConfigurationStrings.ProtectionLevel, DefaultValue = TcpTransportSecurity.DefaultProtectionLevel)] [ServiceModelEnumValidator(typeof(ProtectionLevelHelper))] public ProtectionLevel ProtectionLevel { get { return (ProtectionLevel)base[ConfigurationStrings.ProtectionLevel]; } set { base[ConfigurationStrings.ProtectionLevel] = value; } } internal void ApplyConfiguration(TcpTransportSecurity security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } security.ClientCredentialType = this.ClientCredentialType; security.ProtectionLevel = this.ProtectionLevel; } internal void InitializeFrom(TcpTransportSecurity security) { if (security == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); } this.ClientCredentialType = security.ClientCredentialType; this.ProtectionLevel = security.ProtectionLevel; } } } // 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
- CorePropertiesFilter.cs
- HtmlValidatorAdapter.cs
- AssociationSetMetadata.cs
- DataGridViewRowCollection.cs
- GridViewSortEventArgs.cs
- ClientConfigurationHost.cs
- DataServiceRequestException.cs
- NumericUpDownAcceleration.cs
- ScaleTransform3D.cs
- IpcChannel.cs
- OrderablePartitioner.cs
- StyleBamlRecordReader.cs
- HuffModule.cs
- LeftCellWrapper.cs
- StringInfo.cs
- WindowProviderWrapper.cs
- Scene3D.cs
- PenContext.cs
- ChannelDemuxer.cs
- ToolStrip.cs
- EventManager.cs
- ObjectMaterializedEventArgs.cs
- ConnectivityStatus.cs
- AlignmentYValidation.cs
- NumberFunctions.cs
- SplineQuaternionKeyFrame.cs
- XmlDictionaryString.cs
- UserUseLicenseDictionaryLoader.cs
- CodeRemoveEventStatement.cs
- PageContentAsyncResult.cs
- EditBehavior.cs
- JsonClassDataContract.cs
- RegistrationServices.cs
- EFAssociationProvider.cs
- TdsParserStateObject.cs
- DataServiceProcessingPipelineEventArgs.cs
- _TransmitFileOverlappedAsyncResult.cs
- AssemblyResourceLoader.cs
- DataChangedEventManager.cs
- RequestResizeEvent.cs
- QueryableFilterUserControl.cs
- CustomCredentialPolicy.cs
- WebServiceParameterData.cs
- Trace.cs
- SafeSecurityHelper.cs
- ColorConverter.cs
- SchemaElement.cs
- DefaultObjectMappingItemCollection.cs
- Sequence.cs
- PropertyItemInternal.cs
- EventPropertyMap.cs
- NavigationCommands.cs
- XPathPatternParser.cs
- SourceChangedEventArgs.cs
- Point4D.cs
- CustomAttributeBuilder.cs
- DefaultValueAttribute.cs
- DataSysAttribute.cs
- HttpModuleCollection.cs
- InstanceNameConverter.cs
- ScaleTransform.cs
- MemberAccessException.cs
- XmlSchemaObjectCollection.cs
- Nullable.cs
- UncommonField.cs
- TcpHostedTransportConfiguration.cs
- BamlLocalizer.cs
- NonSerializedAttribute.cs
- Separator.cs
- BooleanStorage.cs
- SoapAttributes.cs
- ControlAdapter.cs
- XPathNavigatorKeyComparer.cs
- ReferenceConverter.cs
- CompiledRegexRunner.cs
- XamlToRtfParser.cs
- XmlILIndex.cs
- HttpCookiesSection.cs
- LinkGrep.cs
- ContainerCodeDomSerializer.cs
- MessagePartProtectionMode.cs
- MenuCommandService.cs
- _MultipleConnectAsync.cs
- ValidationError.cs
- TemplateControlBuildProvider.cs
- OverlappedContext.cs
- DrawingServices.cs
- ProfileGroupSettingsCollection.cs
- HwndSource.cs
- PolicyLevel.cs
- RequestTimeoutManager.cs
- EncodingConverter.cs
- WebPartPersonalization.cs
- ListViewItem.cs
- dbdatarecord.cs
- NonSerializedAttribute.cs
- _BufferOffsetSize.cs
- FormParameter.cs
- Quaternion.cs
- DataGridColumnFloatingHeader.cs