Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / WindowsStreamSecurityElement.cs / 1 / WindowsStreamSecurityElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.ComponentModel; using System.Configuration; using System.Globalization; using System.Net.Security; using System.Text; using System.ServiceModel.Channels; public sealed partial class WindowsStreamSecurityElement : BindingElementExtensionElement { public WindowsStreamSecurityElement() { } [ConfigurationProperty(ConfigurationStrings.ProtectionLevel, DefaultValue = ConnectionOrientedTransportDefaults.ProtectionLevel)] [StandardRuntimeEnumValidator(typeof(ProtectionLevel))] public ProtectionLevel ProtectionLevel { get { return (ProtectionLevel)base[ConfigurationStrings.ProtectionLevel]; } set { base[ConfigurationStrings.ProtectionLevel] = value; } } public override void ApplyConfiguration(BindingElement bindingElement) { base.ApplyConfiguration(bindingElement); WindowsStreamSecurityBindingElement windowsBindingElement = (WindowsStreamSecurityBindingElement)bindingElement; windowsBindingElement.ProtectionLevel = this.ProtectionLevel; } protected internal override BindingElement CreateBindingElement() { WindowsStreamSecurityBindingElement windowsBindingElement = new WindowsStreamSecurityBindingElement(); this.ApplyConfiguration(windowsBindingElement); return windowsBindingElement; } public override Type BindingElementType { get { return typeof(WindowsStreamSecurityBindingElement); } } public override void CopyFrom(ServiceModelExtensionElement from) { base.CopyFrom(from); WindowsStreamSecurityElement source = (WindowsStreamSecurityElement)from; #pragma warning suppress 56506 // [....], base.CopyFrom() validates the argument this.ProtectionLevel = source.ProtectionLevel; } protected internal override void InitializeFrom(BindingElement bindingElement) { base.InitializeFrom(bindingElement); WindowsStreamSecurityBindingElement windowsBindingElement = (WindowsStreamSecurityBindingElement)bindingElement; this.ProtectionLevel = windowsBindingElement.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
- GridViewHeaderRowPresenterAutomationPeer.cs
- RowToParametersTransformer.cs
- BaseProcessProtocolHandler.cs
- TrailingSpaceComparer.cs
- PasswordPropertyTextAttribute.cs
- InternalMappingException.cs
- BitSet.cs
- DesignerAttribute.cs
- JapaneseCalendar.cs
- DataGridViewRowPostPaintEventArgs.cs
- CmsInterop.cs
- WindowsListViewItemCheckBox.cs
- RsaSecurityTokenAuthenticator.cs
- Vector3DAnimationBase.cs
- _TLSstream.cs
- SafeNativeMethods.cs
- _BufferOffsetSize.cs
- InfoCardAsymmetricCrypto.cs
- RectangleHotSpot.cs
- ProtectedProviderSettings.cs
- ItemCheckEvent.cs
- FieldBuilder.cs
- DependentTransaction.cs
- TimeStampChecker.cs
- URLAttribute.cs
- ThemeInfoAttribute.cs
- ExtensionQuery.cs
- XamlRtfConverter.cs
- Input.cs
- XmlNavigatorFilter.cs
- SslSecurityTokenParameters.cs
- BitmapDownload.cs
- XmlArrayItemAttributes.cs
- CapabilitiesRule.cs
- ClosableStream.cs
- ConfigXmlComment.cs
- PackageDocument.cs
- SmtpCommands.cs
- UriExt.cs
- ProgressBarAutomationPeer.cs
- AddInAdapter.cs
- DateTimeOffsetConverter.cs
- controlskin.cs
- recordstatescratchpad.cs
- WebPartRestoreVerb.cs
- errorpatternmatcher.cs
- OleStrCAMarshaler.cs
- SplashScreen.cs
- TabControlAutomationPeer.cs
- BamlTreeMap.cs
- SiteMapNodeItem.cs
- ContextMenuStrip.cs
- assemblycache.cs
- PrintController.cs
- EventMap.cs
- SystemColorTracker.cs
- BindableTemplateBuilder.cs
- ScrollProperties.cs
- ISAPIRuntime.cs
- VirtualPathProvider.cs
- ErasingStroke.cs
- JulianCalendar.cs
- XPathDocumentBuilder.cs
- ExpressionLink.cs
- Hash.cs
- MetafileHeader.cs
- CollectionAdapters.cs
- XmlResolver.cs
- XomlCompilerParameters.cs
- HttpRequestMessageProperty.cs
- infer.cs
- SyndicationElementExtension.cs
- EntityCommandDefinition.cs
- ItemList.cs
- HybridObjectCache.cs
- CatalogPart.cs
- SpellerStatusTable.cs
- BigInt.cs
- HttpCapabilitiesSectionHandler.cs
- IFlowDocumentViewer.cs
- HScrollBar.cs
- TypeHelpers.cs
- StyleHelper.cs
- AnnotationComponentChooser.cs
- TemplateControlBuildProvider.cs
- CompositeActivityDesigner.cs
- SourceElementsCollection.cs
- EUCJPEncoding.cs
- Group.cs
- SlipBehavior.cs
- StaticContext.cs
- ReadOnlyDictionary.cs
- NotifyCollectionChangedEventArgs.cs
- TokenBasedSetEnumerator.cs
- WSHttpTransportSecurityElement.cs
- BuildProviderCollection.cs
- SecurityElement.cs
- RegexNode.cs
- Stacktrace.cs
- ServiceMemoryGates.cs