Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / SslStreamSecurityElement.cs / 1 / SslStreamSecurityElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.ServiceModel.Channels; public sealed partial class SslStreamSecurityElement : BindingElementExtensionElement { public SslStreamSecurityElement() { } [ConfigurationProperty( ConfigurationStrings.RequireClientCertificate, DefaultValue = TransportDefaults.RequireClientCertificate)] public bool RequireClientCertificate { get { return (bool)base[ConfigurationStrings.RequireClientCertificate]; } set { base[ConfigurationStrings.RequireClientCertificate] = value; } } public override void ApplyConfiguration(BindingElement bindingElement) { base.ApplyConfiguration(bindingElement); SslStreamSecurityBindingElement sslBindingElement = (SslStreamSecurityBindingElement)bindingElement; sslBindingElement.RequireClientCertificate = this.RequireClientCertificate; } protected internal override BindingElement CreateBindingElement() { SslStreamSecurityBindingElement sslBindingElement = new SslStreamSecurityBindingElement(); this.ApplyConfiguration(sslBindingElement); return sslBindingElement; } public override Type BindingElementType { get { return typeof(SslStreamSecurityBindingElement); } } public override void CopyFrom(ServiceModelExtensionElement from) { base.CopyFrom(from); SslStreamSecurityElement source = (SslStreamSecurityElement)from; #pragma warning suppress 56506 // [....], base.CopyFrom() validates the argument this.RequireClientCertificate = source.RequireClientCertificate; } protected internal override void InitializeFrom(BindingElement bindingElement) { base.InitializeFrom(bindingElement); SslStreamSecurityBindingElement sslBindingElement = (SslStreamSecurityBindingElement)bindingElement; this.RequireClientCertificate = sslBindingElement.RequireClientCertificate; } } } // 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
- OdbcStatementHandle.cs
- TdsEnums.cs
- XamlBrushSerializer.cs
- SynchronizationLockException.cs
- TokenizerHelper.cs
- ClientSideProviderDescription.cs
- XpsSerializerWriter.cs
- EdmScalarPropertyAttribute.cs
- Selector.cs
- Compensate.cs
- InfoCardBaseException.cs
- SelectorAutomationPeer.cs
- ModelTreeEnumerator.cs
- KnownTypesHelper.cs
- AssemblyInfo.cs
- ReflectEventDescriptor.cs
- WebPageTraceListener.cs
- CodeTypeOfExpression.cs
- XmlAnyElementAttributes.cs
- RichTextBox.cs
- WindowInteropHelper.cs
- XmlCharType.cs
- EdmMember.cs
- WorkflowWebService.cs
- RootBrowserWindowAutomationPeer.cs
- SchemaElement.cs
- TableLayoutRowStyleCollection.cs
- XmlWrappingWriter.cs
- GrammarBuilderRuleRef.cs
- UnhandledExceptionEventArgs.cs
- _NestedSingleAsyncResult.cs
- WebBrowsableAttribute.cs
- DynamicEntity.cs
- InheritedPropertyChangedEventArgs.cs
- SafeHandle.cs
- Ticks.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- UrlMapping.cs
- ModulesEntry.cs
- RemotingHelper.cs
- Item.cs
- DataGridAutoFormatDialog.cs
- PartialCachingControl.cs
- CollectionViewGroup.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ClientSideQueueItem.cs
- ScriptServiceAttribute.cs
- QueryableDataSourceEditData.cs
- GridView.cs
- ReverseInheritProperty.cs
- DeliveryRequirementsAttribute.cs
- QueryBranchOp.cs
- XamlFilter.cs
- IpcPort.cs
- SortFieldComparer.cs
- FixedSOMTableRow.cs
- DockPattern.cs
- Tile.cs
- CompilerResults.cs
- CreateUserErrorEventArgs.cs
- ThrowHelper.cs
- Annotation.cs
- PenThreadWorker.cs
- DataGridLinkButton.cs
- UrlRoutingModule.cs
- CommonXSendMessage.cs
- Walker.cs
- DateTimePicker.cs
- WebPermission.cs
- _ScatterGatherBuffers.cs
- ImageDrawing.cs
- DispatcherFrame.cs
- Normalization.cs
- HostedElements.cs
- SafeEventLogWriteHandle.cs
- Logging.cs
- RectangleF.cs
- ArcSegment.cs
- safemediahandle.cs
- TextTrailingWordEllipsis.cs
- SimpleMailWebEventProvider.cs
- WebRequestModuleElement.cs
- XMLSyntaxException.cs
- TracedNativeMethods.cs
- StaticFileHandler.cs
- Utils.cs
- XmlLanguageConverter.cs
- DescriptionAttribute.cs
- TextEndOfSegment.cs
- VSWCFServiceContractGenerator.cs
- CharacterBufferReference.cs
- RewritingSimplifier.cs
- RepeaterItem.cs
- MultiView.cs
- BamlTreeMap.cs
- SchemaImporterExtension.cs
- XmlILAnnotation.cs
- FunctionDescription.cs
- SystemIPInterfaceProperties.cs
- ScrollableControl.cs