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
- AssemblyAttributesGoHere.cs
- ToolZoneDesigner.cs
- ProxyWebPartManager.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XamlReader.cs
- ActivityDelegate.cs
- SuppressIldasmAttribute.cs
- TextTreeRootTextBlock.cs
- SqlDataSource.cs
- WebPartEditorApplyVerb.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- InternalRelationshipCollection.cs
- HideDisabledControlAdapter.cs
- ContentElementAutomationPeer.cs
- APCustomTypeDescriptor.cs
- JsonSerializer.cs
- HMAC.cs
- WebPartConnectionsCancelEventArgs.cs
- Button.cs
- CryptoStream.cs
- SecurityPermission.cs
- ProcessModelInfo.cs
- HttpRuntimeSection.cs
- InvalidPipelineStoreException.cs
- OdbcCommandBuilder.cs
- ControlBindingsCollection.cs
- TreeView.cs
- XhtmlConformanceSection.cs
- ErrorHandler.cs
- MergeLocalizationDirectives.cs
- HttpAsyncResult.cs
- FrameworkContextData.cs
- DataGridViewBand.cs
- CharacterHit.cs
- FamilyMap.cs
- RangeValueProviderWrapper.cs
- ResXResourceSet.cs
- SrgsGrammarCompiler.cs
- DataRowChangeEvent.cs
- RemoteWebConfigurationHost.cs
- Command.cs
- TokenBasedSet.cs
- ListViewAutomationPeer.cs
- PersistenceTypeAttribute.cs
- SQLDateTime.cs
- SqlGatherConsumedAliases.cs
- ConfigurationSchemaErrors.cs
- Size.cs
- DBAsyncResult.cs
- HtmlShim.cs
- ChannelBinding.cs
- DrawingGroup.cs
- ValidationSummary.cs
- WorkflowFormatterBehavior.cs
- ByteStream.cs
- BamlMapTable.cs
- GridEntryCollection.cs
- _emptywebproxy.cs
- BoolLiteral.cs
- MetafileHeader.cs
- WebPartConnection.cs
- ImageUrlEditor.cs
- SoapTypeAttribute.cs
- PersistChildrenAttribute.cs
- CellParaClient.cs
- GZipDecoder.cs
- ContentWrapperAttribute.cs
- BamlMapTable.cs
- FunctionParameter.cs
- ColorTransform.cs
- MenuBase.cs
- CoreChannel.cs
- ExtensibleClassFactory.cs
- ControlBindingsCollection.cs
- CapabilitiesRule.cs
- versioninfo.cs
- ToolboxItemFilterAttribute.cs
- EventTrigger.cs
- StreamGeometry.cs
- XmlStreamStore.cs
- MainMenu.cs
- ReferenceService.cs
- AuthenticationException.cs
- MaterializeFromAtom.cs
- DocumentOutline.cs
- ContentDisposition.cs
- SessionPageStateSection.cs
- Scene3D.cs
- DetailsViewModeEventArgs.cs
- SiteMapNodeItem.cs
- DocumentSequenceHighlightLayer.cs
- SignedXml.cs
- FormViewPageEventArgs.cs
- OverlappedAsyncResult.cs
- ExpressionLexer.cs
- ProfileManager.cs
- TreeViewCancelEvent.cs
- TemplateBamlRecordReader.cs
- TypedElement.cs
- AccessDataSource.cs