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
- TailCallAnalyzer.cs
- ListControl.cs
- ValidationRule.cs
- UrlPath.cs
- AnnotationResource.cs
- DispatcherEventArgs.cs
- SendDesigner.xaml.cs
- TextServicesPropertyRanges.cs
- CheckBox.cs
- PrintingPermissionAttribute.cs
- BufferedGraphics.cs
- IItemProperties.cs
- CalculatedColumn.cs
- FormViewPagerRow.cs
- TTSEvent.cs
- RuleSetBrowserDialog.cs
- SpotLight.cs
- WindowsAuthenticationModule.cs
- Rect3DValueSerializer.cs
- RequestContext.cs
- HWStack.cs
- TemplateKeyConverter.cs
- HandlerFactoryWrapper.cs
- VectorCollectionConverter.cs
- SqlBinder.cs
- ThemeDirectoryCompiler.cs
- MenuItemCollection.cs
- EmptyElement.cs
- IChannel.cs
- DataGridTextBox.cs
- EntityReference.cs
- SqlErrorCollection.cs
- ValidationEventArgs.cs
- RegexRunnerFactory.cs
- VisualStyleTypesAndProperties.cs
- altserialization.cs
- EncoderFallback.cs
- IOException.cs
- ExtensionCollection.cs
- SimpleMailWebEventProvider.cs
- SafeRightsManagementPubHandle.cs
- MultiDataTrigger.cs
- RegexCompiler.cs
- NameSpaceExtractor.cs
- TabItemAutomationPeer.cs
- WCFBuildProvider.cs
- SchemaMerger.cs
- Util.cs
- MappingItemCollection.cs
- CryptoProvider.cs
- KeyPullup.cs
- EncryptedXml.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ConfigurationManagerHelperFactory.cs
- ViewStateModeByIdAttribute.cs
- FuncTypeConverter.cs
- KeyboardDevice.cs
- ListViewInsertedEventArgs.cs
- Ref.cs
- DropTarget.cs
- BamlLocalizationDictionary.cs
- ReliableOutputSessionChannel.cs
- XmlIncludeAttribute.cs
- AssemblyBuilderData.cs
- LinearGradientBrush.cs
- WinFormsUtils.cs
- Type.cs
- COM2Enum.cs
- CookieProtection.cs
- ParseHttpDate.cs
- Action.cs
- DataGridViewLinkColumn.cs
- WebDescriptionAttribute.cs
- ITextView.cs
- EditCommandColumn.cs
- CfgParser.cs
- XmlDocumentType.cs
- AuthenticateEventArgs.cs
- M3DUtil.cs
- TextServicesHost.cs
- ComboBoxRenderer.cs
- ConfigurationManagerInternalFactory.cs
- DesignerTextWriter.cs
- PhysicalFontFamily.cs
- PrintDialog.cs
- IntSecurity.cs
- DSASignatureFormatter.cs
- EntityDataSourceViewSchema.cs
- WindowsRichEdit.cs
- CheckableControlBaseAdapter.cs
- OutOfProcStateClientManager.cs
- PreservationFileReader.cs
- InputScope.cs
- ErrorEventArgs.cs
- DataSourceListEditor.cs
- RequestTimeoutManager.cs
- MaterialCollection.cs
- ExtenderHelpers.cs
- PolicyLevel.cs
- InternalCache.cs