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
- OutputCacheProfile.cs
- UnsafeNetInfoNativeMethods.cs
- ComplexTypeEmitter.cs
- DiscardableAttribute.cs
- OpCodes.cs
- loginstatus.cs
- Hyperlink.cs
- DbProviderConfigurationHandler.cs
- LayoutExceptionEventArgs.cs
- LiteralTextContainerControlBuilder.cs
- SqlHelper.cs
- ApplicationBuildProvider.cs
- HttpModuleCollection.cs
- GradientStopCollection.cs
- OLEDB_Util.cs
- CacheOutputQuery.cs
- GrammarBuilderWildcard.cs
- PropertyChangedEventArgs.cs
- WebRequestModulesSection.cs
- MethodRental.cs
- SqlDuplicator.cs
- FormViewPageEventArgs.cs
- ExpressionBinding.cs
- UseAttributeSetsAction.cs
- DataGridViewTextBoxColumn.cs
- XamlReaderHelper.cs
- Maps.cs
- StringBuilder.cs
- StorageBasedPackageProperties.cs
- MatcherBuilder.cs
- ToolStripDropDownItem.cs
- HierarchicalDataBoundControl.cs
- log.cs
- InstallerTypeAttribute.cs
- MethodToken.cs
- HashCryptoHandle.cs
- PartialCachingAttribute.cs
- ReferenceEqualityComparer.cs
- EntityDataSourceSelectingEventArgs.cs
- ImmComposition.cs
- TrackingConditionCollection.cs
- SolidColorBrush.cs
- WeakReferenceEnumerator.cs
- AccessedThroughPropertyAttribute.cs
- TargetParameterCountException.cs
- FormParameter.cs
- StackOverflowException.cs
- PrinterUnitConvert.cs
- LockRenewalTask.cs
- XmlCDATASection.cs
- StoreItemCollection.cs
- DBPropSet.cs
- CreateUserWizard.cs
- UriTemplateLiteralPathSegment.cs
- ProtocolsSection.cs
- EditableTreeList.cs
- Sql8ConformanceChecker.cs
- LineBreak.cs
- ExpandoClass.cs
- ActivityMetadata.cs
- COM2ExtendedBrowsingHandler.cs
- XmlQueryCardinality.cs
- PKCS1MaskGenerationMethod.cs
- PasswordPropertyTextAttribute.cs
- Function.cs
- AuthorizationRuleCollection.cs
- EdmFunctions.cs
- listitem.cs
- ADConnectionHelper.cs
- assertwrapper.cs
- DesignerExtenders.cs
- XmlDataSourceNodeDescriptor.cs
- AppDomainEvidenceFactory.cs
- ReadOnlyKeyedCollection.cs
- DeleteCardRequest.cs
- XdrBuilder.cs
- DataRowChangeEvent.cs
- EditorBrowsableAttribute.cs
- PageRanges.cs
- MouseGesture.cs
- BindingList.cs
- TreeBuilderBamlTranslator.cs
- TemplateBindingExpressionConverter.cs
- FontInfo.cs
- SessionState.cs
- ContentTextAutomationPeer.cs
- ArrayElementGridEntry.cs
- WorkflowStateRollbackService.cs
- Menu.cs
- FamilyCollection.cs
- ListControl.cs
- HttpConfigurationSystem.cs
- sqlpipe.cs
- SelectedGridItemChangedEvent.cs
- XmlAttributeProperties.cs
- CodeSubDirectory.cs
- MDIWindowDialog.cs
- DataGridToolTip.cs
- CollectionEditor.cs
- Serializer.cs