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

System.ServiceModel.Description.ContractDescription

public class ContractDescription
namespace System.ServiceModel.Description { public class ContractDescription { public string ConfigurationName { get; set; } public Type ContractType { get; set; } public Type CallbackContractType { get; set; } public string Name { get; set; } public string Namespace { get; set; } public OperationDescriptionCollection Operations { get; } public ProtectionLevel ProtectionLevel { get; set; } public bool HasProtectionLevel { get; } public SessionMode SessionMode { get; set; } public KeyedCollection<Type, IContractBehavior> ContractBehaviors { get; } public KeyedByTypeCollection<IContractBehavior> Behaviors { get; } public ContractDescription(string name); public ContractDescription(string name, string ns); public bool ShouldSerializeProtectionLevel(); public static ContractDescription GetContract(Type contractType); public static ContractDescription GetContract(Type contractType, Type serviceType); public static ContractDescription GetContract(Type contractType, object serviceImplementation); public Collection<ContractDescription> GetInheritedContracts(); } }