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
- Grammar.cs
- PocoPropertyAccessorStrategy.cs
- FreezableDefaultValueFactory.cs
- CustomTypeDescriptor.cs
- ArgIterator.cs
- LinkArea.cs
- DPTypeDescriptorContext.cs
- ConfigurationErrorsException.cs
- DisplayMemberTemplateSelector.cs
- initElementDictionary.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SoapCodeExporter.cs
- SelectionChangedEventArgs.cs
- WaitForChangedResult.cs
- PropertyContainer.cs
- ReferencedCollectionType.cs
- KeyValueInternalCollection.cs
- LicenseProviderAttribute.cs
- TreeNodeCollection.cs
- DateTimeUtil.cs
- StrongName.cs
- CodeFieldReferenceExpression.cs
- util.cs
- WebPartEditVerb.cs
- TypeToTreeConverter.cs
- Win32.cs
- XmlArrayItemAttributes.cs
- TimeSpanFormat.cs
- ProtocolsConfigurationHandler.cs
- ParserOptions.cs
- DefaultExpression.cs
- Geometry3D.cs
- DecoratedNameAttribute.cs
- ActivityTypeCodeDomSerializer.cs
- ListViewHitTestInfo.cs
- XmlNodeWriter.cs
- __ComObject.cs
- _NestedMultipleAsyncResult.cs
- NumberSubstitution.cs
- NTAccount.cs
- ProfileProvider.cs
- TypeNameParser.cs
- TableLayoutStyleCollection.cs
- CodeCommentStatement.cs
- __ConsoleStream.cs
- IISUnsafeMethods.cs
- ListViewItem.cs
- DataViewManager.cs
- ContainsRowNumberChecker.cs
- RtfControlWordInfo.cs
- BitmapEffectGroup.cs
- EmptyEnumerator.cs
- RbTree.cs
- Token.cs
- ResourceLoader.cs
- GridPattern.cs
- ViewManagerAttribute.cs
- RootNamespaceAttribute.cs
- OperandQuery.cs
- ByteStreamGeometryContext.cs
- UserControlParser.cs
- XmlIlVisitor.cs
- DropTarget.cs
- XamlTemplateSerializer.cs
- EditingMode.cs
- CharAnimationUsingKeyFrames.cs
- SiteIdentityPermission.cs
- SqlUserDefinedTypeAttribute.cs
- NativeMethodsCLR.cs
- DelegateArgument.cs
- Speller.cs
- AssemblyBuilder.cs
- PathParser.cs
- CompileLiteralTextParser.cs
- _NegotiateClient.cs
- HttpResponseHeader.cs
- ObjectViewEntityCollectionData.cs
- TrackingStringDictionary.cs
- SHA512.cs
- PathGeometry.cs
- MouseButtonEventArgs.cs
- OracleMonthSpan.cs
- XmlElementCollection.cs
- SmiXetterAccessMap.cs
- DrawTreeNodeEventArgs.cs
- DisableDpiAwarenessAttribute.cs
- SmiTypedGetterSetter.cs
- OdbcEnvironmentHandle.cs
- _Events.cs
- EditorZoneBase.cs
- _PooledStream.cs
- RegularExpressionValidator.cs
- Maps.cs
- SortAction.cs
- CapabilitiesUse.cs
- JsonSerializer.cs
- MetadataItem.cs
- ObjectFullSpanRewriter.cs
- FlagsAttribute.cs
- CompleteWizardStep.cs