| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Runtime.Versioning; |
| | | 6 | | using CoreWCF.Configuration; |
| | | 7 | | |
| | | 8 | | namespace CoreWCF.Channels |
| | | 9 | | { |
| | | 10 | | [SupportedOSPlatform("windows")] |
| | | 11 | | public class NamedPipeTransportBindingElement : ConnectionOrientedTransportBindingElement |
| | | 12 | | { |
| | 0 | 13 | | public NamedPipeTransportBindingElement() : base() { } |
| | 0 | 14 | | protected NamedPipeTransportBindingElement(NamedPipeTransportBindingElement elementToBeCloned) : base(elementToB |
| | | 15 | | |
| | | 16 | | // AllowedSecurityIdentifiers has moved to NamedPipeListenOptions.AllowedUsers |
| | | 17 | | |
| | 0 | 18 | | public override string Scheme => Uri.UriSchemeNetPipe; |
| | 0 | 19 | | protected override string WsdlTransportUri => "http://schemas.microsoft.com/soap/named-pipe"; //TransportPolicyC |
| | 0 | 20 | | public override BindingElement Clone() => new NamedPipeTransportBindingElement(this); |
| | 0 | 21 | | public override IServiceDispatcher BuildServiceDispatcher<TChannel>(BindingContext context, IServiceDispatcher i |
| | 0 | 22 | | protected override bool SupportsUpgrade(StreamUpgradeBindingElement upgradeBindingElement) => upgradeBindingElem |
| | | 23 | | |
| | | 24 | | public override T GetProperty<T>(BindingContext context) |
| | | 25 | | { |
| | 0 | 26 | | if (context == null) |
| | | 27 | | { |
| | 0 | 28 | | throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context)); |
| | | 29 | | } |
| | | 30 | | else |
| | | 31 | | { |
| | 0 | 32 | | return base.GetProperty<T>(context); |
| | | 33 | | } |
| | | 34 | | } |
| | | 35 | | } |
| | | 36 | | } |