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
- SamlSubject.cs
- SingleAnimation.cs
- DateTimePicker.cs
- HealthMonitoringSection.cs
- SafeHandles.cs
- ExecutionContext.cs
- RelOps.cs
- XsltContext.cs
- TreeNodeEventArgs.cs
- EventDrivenDesigner.cs
- SafeNativeMethods.cs
- NamespaceEmitter.cs
- safelink.cs
- CellTreeSimplifier.cs
- CommentEmitter.cs
- TemplateColumn.cs
- Signature.cs
- WebPartMovingEventArgs.cs
- XmlName.cs
- CryptoApi.cs
- DataGridViewCellCancelEventArgs.cs
- SelectionEditor.cs
- LinqDataSourceView.cs
- Merger.cs
- XmlAttributeOverrides.cs
- ContextMenuStripGroup.cs
- PointAnimation.cs
- DiagnosticTrace.cs
- DbMetaDataCollectionNames.cs
- IDictionary.cs
- BuildManager.cs
- ConfigurationValue.cs
- SiteMapNode.cs
- ImageIndexEditor.cs
- DataProviderNameConverter.cs
- SystemUdpStatistics.cs
- DesignerForm.cs
- ErrorFormatter.cs
- HelpKeywordAttribute.cs
- MimeTypeMapper.cs
- OracleConnectionStringBuilder.cs
- XmlSortKey.cs
- DropDownList.cs
- FormatVersion.cs
- PrintPreviewControl.cs
- XmlSchemaElement.cs
- SqlUDTStorage.cs
- CornerRadiusConverter.cs
- Int16Animation.cs
- SqlWebEventProvider.cs
- xamlnodes.cs
- StaticFileHandler.cs
- AuthorizationRuleCollection.cs
- ScriptingJsonSerializationSection.cs
- ProxyWebPartManager.cs
- ReachUIElementCollectionSerializerAsync.cs
- DataViewManager.cs
- Imaging.cs
- ProgressBarHighlightConverter.cs
- DiscoveryServerProtocol.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- RequestCache.cs
- ListParaClient.cs
- IBuiltInEvidence.cs
- SqlDataSourceConfigureFilterForm.cs
- DebugController.cs
- UidPropertyAttribute.cs
- StatusBar.cs
- PropertyStore.cs
- DependencyPropertyHelper.cs
- ActivityInstanceReference.cs
- SettingsPropertyValueCollection.cs
- BaseTreeIterator.cs
- Nodes.cs
- OdbcCommandBuilder.cs
- WebBrowserProgressChangedEventHandler.cs
- TreeViewItem.cs
- DataGridViewBand.cs
- SequenceDesignerAccessibleObject.cs
- ISSmlParser.cs
- Membership.cs
- XmlQueryStaticData.cs
- MulticastNotSupportedException.cs
- StorageFunctionMapping.cs
- TextRange.cs
- PreviewPageInfo.cs
- UiaCoreTypesApi.cs
- StatusBarPanel.cs
- CallbackException.cs
- SqlReorderer.cs
- StandardToolWindows.cs
- TypeToken.cs
- Brush.cs
- NameValuePair.cs
- SHA256.cs
- PrivilegedConfigurationManager.cs
- OutputCacheSettings.cs
- WebServiceAttribute.cs
- SqlRetyper.cs
- TextTreeText.cs