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
- SqlCacheDependency.cs
- TableFieldsEditor.cs
- CodeStatementCollection.cs
- ExpanderAutomationPeer.cs
- BindingManagerDataErrorEventArgs.cs
- SHA384.cs
- CalendarDesigner.cs
- HttpListenerRequest.cs
- HtmlTernaryTree.cs
- PostBackOptions.cs
- CreateUserErrorEventArgs.cs
- StreamAsIStream.cs
- AesManaged.cs
- ScaleTransform3D.cs
- CqlIdentifiers.cs
- TypeValidationEventArgs.cs
- TreeNodeCollection.cs
- SolidColorBrush.cs
- xdrvalidator.cs
- CategoryGridEntry.cs
- TTSEngineTypes.cs
- MultiAsyncResult.cs
- BamlLocalizationDictionary.cs
- LogStore.cs
- WebPartConnectionsDisconnectVerb.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- ClientSettingsStore.cs
- QilReference.cs
- GridViewRowEventArgs.cs
- EntityContainerEntitySet.cs
- LZCodec.cs
- Vector3DKeyFrameCollection.cs
- IndentedTextWriter.cs
- SqlDataSourceView.cs
- MenuItem.cs
- EntityViewGenerationConstants.cs
- PartitionResolver.cs
- Part.cs
- RtType.cs
- ListView.cs
- DataObject.cs
- TaskHelper.cs
- ResXResourceWriter.cs
- SqlLiftIndependentRowExpressions.cs
- SQLByteStorage.cs
- DecimalAverageAggregationOperator.cs
- ZipIOExtraField.cs
- DataGridViewCellMouseEventArgs.cs
- GridViewEditEventArgs.cs
- Int32RectConverter.cs
- GcSettings.cs
- Matrix3D.cs
- ReflectEventDescriptor.cs
- CharacterString.cs
- OrderingInfo.cs
- StackBuilderSink.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- BinaryUtilClasses.cs
- Grid.cs
- TemplateParser.cs
- MultilineStringConverter.cs
- FixedDocument.cs
- StringUtil.cs
- BitStream.cs
- EntityDataSourceChangingEventArgs.cs
- NodeInfo.cs
- NameValueSectionHandler.cs
- _ContextAwareResult.cs
- IssuedTokenClientCredential.cs
- DataControlLinkButton.cs
- QuotedStringFormatReader.cs
- Ray3DHitTestResult.cs
- IODescriptionAttribute.cs
- DatePickerAutomationPeer.cs
- ImageListImage.cs
- EdmToObjectNamespaceMap.cs
- Point.cs
- CallContext.cs
- TrackingLocation.cs
- HwndHostAutomationPeer.cs
- ConfigurationElementCollection.cs
- xml.cs
- ConfigXmlSignificantWhitespace.cs
- PolicyManager.cs
- Rules.cs
- ToolStripHighContrastRenderer.cs
- ControlBindingsCollection.cs
- KnownBoxes.cs
- TemplateBindingExtensionConverter.cs
- SqlNodeAnnotation.cs
- JournalEntryStack.cs
- Int16AnimationBase.cs
- CapabilitiesAssignment.cs
- Object.cs
- NetworkAddressChange.cs
- FusionWrap.cs
- InvalidDataException.cs
- SaveFileDialog.cs
- DocumentGridContextMenu.cs
- ThicknessConverter.cs