Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / NamedPipeTransportSecurity.cs / 1 / NamedPipeTransportSecurity.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System; using System.ServiceModel.Channels; using System.ServiceModel.Security; using System.Net; using System.Net.Security; public sealed class NamedPipeTransportSecurity { internal const ProtectionLevel DefaultProtectionLevel = ProtectionLevel.EncryptAndSign; ProtectionLevel protectionLevel; internal NamedPipeTransportSecurity() { this.protectionLevel = DefaultProtectionLevel; } public ProtectionLevel ProtectionLevel { get { return this.protectionLevel; } set { if (!ProtectionLevelHelper.IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); } this.protectionLevel = value; } } internal WindowsStreamSecurityBindingElement CreateTransportProtectionAndAuthentication() { WindowsStreamSecurityBindingElement result = new WindowsStreamSecurityBindingElement(); result.ProtectionLevel = this.protectionLevel; return result; } internal static bool IsTransportProtectionAndAuthentication(WindowsStreamSecurityBindingElement wssbe, NamedPipeTransportSecurity transportSecurity) { transportSecurity.protectionLevel = wssbe.ProtectionLevel; return true; } } } // 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
- InternalEnumValidatorAttribute.cs
- VirtualPath.cs
- Cloud.cs
- UnionCodeGroup.cs
- UpdateTracker.cs
- NavigationService.cs
- MenuItemStyle.cs
- PtsHost.cs
- PointAnimation.cs
- ValidatedMobileControlConverter.cs
- HostExecutionContextManager.cs
- MimeParameterWriter.cs
- ArrayConverter.cs
- Bits.cs
- SiteMapHierarchicalDataSourceView.cs
- SizeAnimationUsingKeyFrames.cs
- DataGridViewControlCollection.cs
- ToolboxItemFilterAttribute.cs
- CalendarSelectionChangedEventArgs.cs
- DataTransferEventArgs.cs
- InheritanceContextHelper.cs
- BypassElement.cs
- CodeMemberMethod.cs
- Comparer.cs
- Hashtable.cs
- AttachmentCollection.cs
- RangeValueProviderWrapper.cs
- StaticResourceExtension.cs
- BindingOperations.cs
- SecurityTokenAuthenticator.cs
- DesignerActionVerbItem.cs
- ProcessThreadCollection.cs
- _PooledStream.cs
- AuthenticatingEventArgs.cs
- WinFormsSpinner.cs
- dsa.cs
- XmlValidatingReaderImpl.cs
- ReversePositionQuery.cs
- QueryGeneratorBase.cs
- ProcessModelInfo.cs
- SerializableAttribute.cs
- QueryConverter.cs
- WizardForm.cs
- HtmlTableRowCollection.cs
- Literal.cs
- ScriptingScriptResourceHandlerSection.cs
- TextServicesCompartmentEventSink.cs
- TextTreeDeleteContentUndoUnit.cs
- ReferencedAssembly.cs
- SafeNativeMethods.cs
- Debugger.cs
- XmlReaderSettings.cs
- IPAddressCollection.cs
- RectConverter.cs
- EventItfInfo.cs
- ToolBarOverflowPanel.cs
- BitmapSourceSafeMILHandle.cs
- Slider.cs
- GenericParameterDataContract.cs
- CompositeActivityMarkupSerializer.cs
- DataGridViewTopRowAccessibleObject.cs
- AsyncPostBackErrorEventArgs.cs
- GradientStop.cs
- FileLevelControlBuilderAttribute.cs
- TypeUnloadedException.cs
- WebBrowserNavigatingEventHandler.cs
- InfoCardSymmetricAlgorithm.cs
- DecimalAverageAggregationOperator.cs
- PrefixHandle.cs
- WebBrowserContainer.cs
- QueryAccessibilityHelpEvent.cs
- GenericAuthenticationEventArgs.cs
- EmbossBitmapEffect.cs
- InstanceKey.cs
- PropertyGridCommands.cs
- SafeLibraryHandle.cs
- DynamicDiscoSearcher.cs
- PropertyStore.cs
- UdpTransportSettingsElement.cs
- GetWinFXPath.cs
- Int64.cs
- HttpModulesInstallComponent.cs
- TimeoutValidationAttribute.cs
- HtmlInputPassword.cs
- DataServicePagingProviderWrapper.cs
- StatusBarDrawItemEvent.cs
- InternalUserCancelledException.cs
- FormsAuthenticationTicket.cs
- CurrentTimeZone.cs
- ClientRuntimeConfig.cs
- ObjectDataSourceDesigner.cs
- Preprocessor.cs
- CryptoKeySecurity.cs
- XmlSchemaComplexType.cs
- Point3DCollectionValueSerializer.cs
- Floater.cs
- UriSection.cs
- ContainerControl.cs
- CustomGrammar.cs
- graph.cs