<PackageReference Include="System.ServiceModel.Primitives" Version="8.1.0" />

System.ServiceModel.Description.MessageDescription

public class MessageDescription
namespace System.ServiceModel.Description { public class MessageDescription { public string Action { get; } public MessageBodyDescription Body { get; } public MessageDirection Direction { get; } public MessageHeaderDescriptionCollection Headers { get; } public MessagePropertyDescriptionCollection Properties { get; } public ProtectionLevel ProtectionLevel { get; set; } public bool HasProtectionLevel { get; } public Type MessageType { get; set; } public MessageDescription(string action, MessageDirection direction); public bool ShouldSerializeProtectionLevel(); } }