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
- HtmlTableRowCollection.cs
- CapabilitiesState.cs
- LocalizableAttribute.cs
- NullableIntMinMaxAggregationOperator.cs
- DecoderNLS.cs
- ConnectionManagementSection.cs
- ChannelBase.cs
- ReflectEventDescriptor.cs
- WebPartDisplayModeCollection.cs
- WebEvents.cs
- MemberHolder.cs
- WeakReference.cs
- CodeTypeReferenceExpression.cs
- CompositeTypefaceMetrics.cs
- SqlDuplicator.cs
- SafeRightsManagementPubHandle.cs
- CornerRadiusConverter.cs
- DockPatternIdentifiers.cs
- PropertyFilterAttribute.cs
- TaskHelper.cs
- SHA384.cs
- WebBrowser.cs
- ObjectListCommand.cs
- HelpEvent.cs
- DynamicFilterExpression.cs
- LockCookie.cs
- ClientSettingsSection.cs
- CreateUserWizard.cs
- SqlBinder.cs
- IdnMapping.cs
- GeneralTransform2DTo3D.cs
- PropertyIDSet.cs
- ControlBindingsCollection.cs
- MetafileHeaderWmf.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- CustomError.cs
- AsyncPostBackErrorEventArgs.cs
- InvokeMethodActivity.cs
- SqlGatherProducedAliases.cs
- HiddenFieldPageStatePersister.cs
- RealizationContext.cs
- BinaryVersion.cs
- DefaultHttpHandler.cs
- MonthChangedEventArgs.cs
- ElapsedEventArgs.cs
- TextTreeExtractElementUndoUnit.cs
- TextFormatterContext.cs
- RijndaelCryptoServiceProvider.cs
- SignerInfo.cs
- EventOpcode.cs
- ScrollBar.cs
- LayoutEditorPart.cs
- DocumentApplication.cs
- StyleXamlParser.cs
- HtmlWindow.cs
- HttpClientCertificate.cs
- ReadOnlyDictionary.cs
- HtmlDocument.cs
- DataGridViewCellMouseEventArgs.cs
- ConfigViewGenerator.cs
- SetterBaseCollection.cs
- HttpsTransportElement.cs
- SqlConnectionManager.cs
- WindowsFormsSectionHandler.cs
- XmlStreamStore.cs
- Soap12ProtocolReflector.cs
- StrokeRenderer.cs
- DataSourceControl.cs
- hresults.cs
- ExceptionValidationRule.cs
- DEREncoding.cs
- TTSEvent.cs
- OverlappedAsyncResult.cs
- MarkupObject.cs
- FilePrompt.cs
- WindowsStartMenu.cs
- XmlIlTypeHelper.cs
- XmlEncoding.cs
- InfoCardCryptoHelper.cs
- StringValueSerializer.cs
- FormView.cs
- _ContextAwareResult.cs
- basecomparevalidator.cs
- NameTable.cs
- StringUtil.cs
- ResetableIterator.cs
- SiteMapPathDesigner.cs
- ListenDesigner.cs
- ObjectStateEntry.cs
- GradientBrush.cs
- XmlReader.cs
- GroupItem.cs
- TextEditor.cs
- TakeQueryOptionExpression.cs
- WCFModelStrings.Designer.cs
- RoleServiceManager.cs
- SystemFonts.cs
- HyperLinkField.cs
- XmlStreamStore.cs
- ToolStripRenderer.cs