| File: FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SendSecurityHeader.cs | Web Access |
| Project: src\src\dotnet-svcutil\lib\src\dotnet-svcutil-lib.csproj (dotnet-svcutil-lib) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.ServiceModel.Channels; using System.ServiceModel.Description; using Microsoft.Xml; namespace System.ServiceModel.Security { internal abstract class SendSecurityHeader : SecurityHeader, IMessageHeaderWithSharedNamespace { protected SendSecurityHeader(Message message, string actor, bool mustUnderstand, bool relay, SecurityStandardsManager standardsManager, SecurityAlgorithmSuite algorithmSuite, MessageDirection transferDirection) : base(message, actor, mustUnderstand, relay, standardsManager, algorithmSuite, transferDirection) { throw ExceptionHelper.PlatformNotSupported(); } XmlDictionaryString IMessageHeaderWithSharedNamespace.SharedNamespace { get { return XD.UtilityDictionary.Namespace; } } XmlDictionaryString IMessageHeaderWithSharedNamespace.SharedPrefix { get { return XD.UtilityDictionary.Prefix; } } public override string Name { get { return this.StandardsManager.SecurityVersion.HeaderName.Value; } } public override string Namespace { get { return this.StandardsManager.SecurityVersion.HeaderNamespace.Value; } } protected override void OnWriteHeaderContents(XmlDictionaryWriter writer, MessageVersion messageVersion) { throw ExceptionHelper.PlatformNotSupported(); } } }