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
- SystemIPGlobalStatistics.cs
- ByteStreamMessageUtility.cs
- XmlSortKey.cs
- ContainerParagraph.cs
- PreviousTrackingServiceAttribute.cs
- RelatedPropertyManager.cs
- WebPart.cs
- MessageSecurityProtocol.cs
- WindowsListViewScroll.cs
- SqlDataAdapter.cs
- Point3DAnimationBase.cs
- SiblingIterators.cs
- DefaultBinder.cs
- XamlStackWriter.cs
- XsdDataContractImporter.cs
- SiteMapPathDesigner.cs
- returneventsaver.cs
- InvalidOleVariantTypeException.cs
- JournalEntry.cs
- RuleRef.cs
- HTMLTagNameToTypeMapper.cs
- SizeF.cs
- ChangePassword.cs
- Cursors.cs
- FormsAuthenticationCredentials.cs
- GridViewDeletedEventArgs.cs
- Metafile.cs
- SHA256.cs
- WebPartTransformer.cs
- FileRecordSequenceHelper.cs
- HtmlAnchor.cs
- DoubleUtil.cs
- ClientTarget.cs
- SQLInt16Storage.cs
- WebControl.cs
- GridViewRowPresenterBase.cs
- MailSettingsSection.cs
- MaxMessageSizeStream.cs
- ProxyGenerationError.cs
- ApplicationActivator.cs
- RulePatternOps.cs
- securitymgrsite.cs
- CommonObjectSecurity.cs
- ColorConvertedBitmapExtension.cs
- ObjectViewListener.cs
- StatusBarDrawItemEvent.cs
- AspNetPartialTrustHelpers.cs
- ResourceKey.cs
- ConnectionPoint.cs
- AutoScrollHelper.cs
- RuntimeHelpers.cs
- DataSetMappper.cs
- OpCodes.cs
- ImportOptions.cs
- ProviderIncompatibleException.cs
- ThousandthOfEmRealDoubles.cs
- Lease.cs
- DataTableMapping.cs
- XmlSchemaParticle.cs
- DynamicActionMessageFilter.cs
- WebBrowserEvent.cs
- StringInfo.cs
- ReadOnlyCollectionBase.cs
- TextEditorContextMenu.cs
- GeneratedView.cs
- EpmCustomContentDeSerializer.cs
- SizeAnimationClockResource.cs
- OptimizerPatterns.cs
- DSACryptoServiceProvider.cs
- EncryptedPackage.cs
- HtmlElementCollection.cs
- TextDecorationCollection.cs
- HMACSHA384.cs
- DataGridPageChangedEventArgs.cs
- DeriveBytes.cs
- GroupedContextMenuStrip.cs
- UIElementPropertyUndoUnit.cs
- InputElement.cs
- SByteConverter.cs
- SchemaHelper.cs
- Int32CAMarshaler.cs
- UnmanagedMarshal.cs
- XPathAncestorIterator.cs
- Cursors.cs
- VBCodeProvider.cs
- HideDisabledControlAdapter.cs
- UpdateManifestForBrowserApplication.cs
- DataChangedEventManager.cs
- TextTreeRootTextBlock.cs
- SessionIDManager.cs
- DetailsView.cs
- MenuItemBinding.cs
- EdmToObjectNamespaceMap.cs
- SqlDuplicator.cs
- TitleStyle.cs
- AttributeCollection.cs
- BaseProcessProtocolHandler.cs
- RawStylusInputCustomData.cs
- SmtpMail.cs
- EventBindingService.cs