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
- Grid.cs
- Baml2006ReaderContext.cs
- BitmapImage.cs
- DragEvent.cs
- ByeOperationAsyncResult.cs
- ProofTokenCryptoHandle.cs
- ControlCollection.cs
- FrameworkElementFactory.cs
- HttpCookiesSection.cs
- CharKeyFrameCollection.cs
- Quad.cs
- HandleCollector.cs
- mansign.cs
- CodeExporter.cs
- DocumentViewerBaseAutomationPeer.cs
- Convert.cs
- safex509handles.cs
- TimeSpanValidator.cs
- validation.cs
- LineServicesCallbacks.cs
- DocumentSequence.cs
- WS2007FederationHttpBindingElement.cs
- EventWaitHandle.cs
- CachedBitmap.cs
- ToolZone.cs
- AppDomainUnloadedException.cs
- CodeTypeOfExpression.cs
- UriExt.cs
- PrimitiveCodeDomSerializer.cs
- ReceiveCompletedEventArgs.cs
- UmAlQuraCalendar.cs
- Baml2006SchemaContext.cs
- StrokeNodeEnumerator.cs
- BoolExpr.cs
- SecurityTokenResolver.cs
- InvalidComObjectException.cs
- PersonalizablePropertyEntry.cs
- securitycriticaldataformultiplegetandset.cs
- FormViewModeEventArgs.cs
- Stroke.cs
- WebRequestModulesSection.cs
- SessionStateContainer.cs
- SQLChars.cs
- Rule.cs
- DateTimeOffsetConverter.cs
- AtomServiceDocumentSerializer.cs
- SqlTransaction.cs
- PieceDirectory.cs
- WorkflowTraceTransfer.cs
- DateTimeSerializationSection.cs
- ScriptModule.cs
- BrowserCapabilitiesFactoryBase.cs
- SystemNetHelpers.cs
- AdRotator.cs
- SqlMultiplexer.cs
- MouseBinding.cs
- ProfileBuildProvider.cs
- ThreadStateException.cs
- WindowsStatic.cs
- MenuItem.cs
- Comparer.cs
- FileDataSourceCache.cs
- PropertyDescriptorCollection.cs
- XmlHierarchicalDataSourceView.cs
- MediaTimeline.cs
- IisTraceListener.cs
- MarkupCompilePass1.cs
- LineGeometry.cs
- BasicCellRelation.cs
- StateItem.cs
- DataGridViewButtonCell.cs
- ActiveXHost.cs
- HtmlInputImage.cs
- CredentialCache.cs
- CommentAction.cs
- DrawingGroup.cs
- PropertyGridView.cs
- TemplateBaseAction.cs
- OdbcCommandBuilder.cs
- NumberFormatInfo.cs
- SrgsRule.cs
- TextLine.cs
- Size3D.cs
- ExceptionHandlers.cs
- _NestedSingleAsyncResult.cs
- NavigationService.cs
- GridItemCollection.cs
- AssemblyEvidenceFactory.cs
- DataSourceSelectArguments.cs
- MethodBody.cs
- DataSourceXmlSerializationAttribute.cs
- CaseExpr.cs
- IOThreadScheduler.cs
- InkSerializer.cs
- FastEncoderWindow.cs
- ResourceContainer.cs
- RtfToken.cs
- SmtpTransport.cs
- Clause.cs
- EncodingNLS.cs