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
- GPPOINTF.cs
- Span.cs
- DeviceOverridableAttribute.cs
- XmlSchemaAttributeGroupRef.cs
- URIFormatException.cs
- AutoGeneratedField.cs
- VisualBasicImportReference.cs
- EventLogEntryCollection.cs
- VirtualizingStackPanel.cs
- TableHeaderCell.cs
- OletxTransactionFormatter.cs
- RepeaterItem.cs
- RegularExpressionValidator.cs
- Memoizer.cs
- RubberbandSelector.cs
- SQLSingleStorage.cs
- XmlNodeReader.cs
- TextElementEnumerator.cs
- ApplicationManager.cs
- PeerInputChannel.cs
- ColumnResizeUndoUnit.cs
- ToolStripItemTextRenderEventArgs.cs
- SecurityPermission.cs
- ScrollEventArgs.cs
- HtmlButton.cs
- ScriptingSectionGroup.cs
- ExtendedPropertyDescriptor.cs
- ComAdminWrapper.cs
- SoapIgnoreAttribute.cs
- XmlReflectionImporter.cs
- PolygonHotSpot.cs
- DataGridViewRowPrePaintEventArgs.cs
- UrlPath.cs
- Panel.cs
- SafeNativeMethods.cs
- SizeChangedEventArgs.cs
- xsdvalidator.cs
- PropertyPath.cs
- AnchoredBlock.cs
- MenuEventArgs.cs
- XmlName.cs
- FontStretchConverter.cs
- GenericsInstances.cs
- Int32AnimationBase.cs
- ListenerAdapterBase.cs
- DataGridViewColumnHeaderCell.cs
- SiteMapNode.cs
- WsiProfilesElement.cs
- PagePropertiesChangingEventArgs.cs
- LayoutUtils.cs
- SystemDropShadowChrome.cs
- CustomSignedXml.cs
- TogglePatternIdentifiers.cs
- CompleteWizardStep.cs
- IDReferencePropertyAttribute.cs
- EncryptedPackage.cs
- DoubleAnimationUsingKeyFrames.cs
- ToolStripItemEventArgs.cs
- OperationPerformanceCounters.cs
- infer.cs
- SectionInput.cs
- Compilation.cs
- RelOps.cs
- DurableInstanceProvider.cs
- Comparer.cs
- ListBindingConverter.cs
- TextElementCollectionHelper.cs
- DirectoryNotFoundException.cs
- DataGridBoundColumn.cs
- SystemIPGlobalProperties.cs
- RtfToXamlReader.cs
- EastAsianLunisolarCalendar.cs
- HttpCachePolicyElement.cs
- TemplateParser.cs
- EntityConnectionStringBuilderItem.cs
- DataGridHeaderBorder.cs
- ProfileService.cs
- GenerateTemporaryAssemblyTask.cs
- PeerNearMe.cs
- DesignerTransactionCloseEvent.cs
- TrackingDataItem.cs
- CopyNodeSetAction.cs
- HierarchicalDataBoundControlAdapter.cs
- XmlSchemaObjectTable.cs
- Internal.cs
- EntityDataSourceView.cs
- MenuItemCollection.cs
- DataBoundControl.cs
- TypeBuilder.cs
- UrlMapping.cs
- ScrollableControl.cs
- SelectionUIService.cs
- CombinedGeometry.cs
- FrameDimension.cs
- DragDrop.cs
- WebPartCloseVerb.cs
- KnownTypesProvider.cs
- GraphicsState.cs
- UrlMappingsSection.cs
- HtmlDocument.cs