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
- SafeNativeMethods.cs
- NotConverter.cs
- XmlAggregates.cs
- BasicCellRelation.cs
- SuppressIldasmAttribute.cs
- MemberListBinding.cs
- QueryCacheManager.cs
- CollectionTraceRecord.cs
- ScrollItemPattern.cs
- SerialReceived.cs
- DataGridViewToolTip.cs
- CanonicalFontFamilyReference.cs
- DllNotFoundException.cs
- DataServiceProcessingPipelineEventArgs.cs
- ListenerElementsCollection.cs
- LinkedList.cs
- SystemWebCachingSectionGroup.cs
- NativeMethods.cs
- BasicExpressionVisitor.cs
- FileCodeGroup.cs
- DefaultParameterValueAttribute.cs
- WebResourceUtil.cs
- WindowsAltTab.cs
- DropShadowEffect.cs
- VectorAnimationUsingKeyFrames.cs
- MappedMetaModel.cs
- Symbol.cs
- NamedElement.cs
- ThreadExceptionEvent.cs
- SwitchAttribute.cs
- PatternMatcher.cs
- CurrencyWrapper.cs
- SQLChars.cs
- SqlTriggerAttribute.cs
- IntranetCredentialPolicy.cs
- XmlName.cs
- KnownTypes.cs
- EditorAttribute.cs
- RedirectionProxy.cs
- DrawTreeNodeEventArgs.cs
- HScrollProperties.cs
- ImageButton.cs
- AffineTransform3D.cs
- MenuItemBinding.cs
- SystemFonts.cs
- XXXInfos.cs
- MulticastOption.cs
- AppDomainProtocolHandler.cs
- ColorTranslator.cs
- ReachSerializationCacheItems.cs
- WebPartConnectionsCancelVerb.cs
- XmlHierarchicalEnumerable.cs
- ResourceSet.cs
- StateItem.cs
- RadioButtonBaseAdapter.cs
- CharacterBufferReference.cs
- RadialGradientBrush.cs
- UpdatePanelTriggerCollection.cs
- ProxyDataContractResolver.cs
- NumberSubstitution.cs
- XmlSerializerNamespaces.cs
- Int64Storage.cs
- CodeComment.cs
- ChooseAction.cs
- XmlPreloadedResolver.cs
- StoreItemCollection.cs
- CriticalFinalizerObject.cs
- LoadedOrUnloadedOperation.cs
- PermissionListSet.cs
- BinaryObjectInfo.cs
- FunctionImportElement.cs
- SafeBitVector32.cs
- CodeBlockBuilder.cs
- Point3DKeyFrameCollection.cs
- AmbientValueAttribute.cs
- DefaultValidator.cs
- NameHandler.cs
- SqlUnionizer.cs
- OdbcParameterCollection.cs
- StorageFunctionMapping.cs
- ExternalFile.cs
- TransformProviderWrapper.cs
- TextViewSelectionProcessor.cs
- PasswordRecovery.cs
- FontStyleConverter.cs
- BufferedResponseStream.cs
- EpmCustomContentWriterNodeData.cs
- Helper.cs
- OutOfProcStateClientManager.cs
- StateMachineWorkflowInstance.cs
- CodeIterationStatement.cs
- CombinedGeometry.cs
- HttpPostProtocolImporter.cs
- SqlConnectionHelper.cs
- DataSourceCacheDurationConverter.cs
- ClientData.cs
- DataViewManagerListItemTypeDescriptor.cs
- HyperLinkColumn.cs
- ContractMapping.cs
- StatusStrip.cs