5 instantiations of ContractDescription
dotnet-svcutil-lib (5)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (3)
184ContractDescription contract = new ContractDescription(contractName.Name, contractName.Namespace); 199ContractDescription contract = new ContractDescription(contractName.Name, contractName.Namespace); 743ContractDescription contractDescription = new ContractDescription(contractName.Name, contractName.Namespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (1)
537contractDescription = new ContractDescription(contractQName.Name, contractQName.Namespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
19public static ContractDescription NullContract = new ContractDescription("null");
159 references to ContractDescription
dotnet-svcutil-lib (159)
CodeDomFixup\EndpointSelector.cs (1)
20public EndpointSelector(WsdlImporter importer, Collection<ServiceEndpoint> endpoints, Collection<Binding> bindings, Collection<ContractDescription> contracts)
CodeDomFixup\IWcfCodeGenerationExtension.cs (1)
55void WsdlImported(WsdlImporter importer, Collection<ServiceEndpoint> endpoints, Collection<Binding> bindings, Collection<ContractDescription> contracts);
CodeDomFixup\MetadataFixup.cs (5)
21public static IFixup[] GetPostFixups(WsdlImporter importer, Collection<ServiceEndpoint> endpoints, Collection<Binding> bindings, Collection<ContractDescription> contracts) 34protected readonly Collection<ContractDescription> contracts; 38protected MetadataFixup(WsdlImporter importer, Collection<ServiceEndpoint> endpoints, Collection<Binding> bindings, Collection<ContractDescription> contracts) 46protected IEnumerable<ContractDescription> AllContracts() 53foreach (ContractDescription contract in contracts)
CodeDomFixup\NoMessageHeaderFixup.cs (2)
13public NoMessageHeaderFixup(WsdlImporter importer, Collection<ServiceEndpoint> endpoints, Collection<Binding> bindings, Collection<ContractDescription> contracts) 24foreach (ContractDescription contract in AllContracts())
CodeDomFixup\NoSoapEncodingFixup.cs (4)
15public NoSoapEncodingFixup(WsdlImporter importer, Collection<ServiceEndpoint> endpoints, Collection<Binding> bindings, Collection<ContractDescription> contracts) 26foreach (ContractDescription contract in AllContracts()) 41private ContractDescription _contract; 43internal SoapEncodingOperationFilter(ContractDescription contract)
CodeDomFixup\WcfCodeGenerationExtension.cs (2)
40public void WsdlImported(WsdlImporter importer, Collection<ServiceEndpoint> endpoints, Collection<Binding> bindings, Collection<ContractDescription> contracts) 45foreach (var contract in contracts)
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (1)
573ContractDescription contractDescription = this.TypeLoader.LoadContractDescription(_channelType);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (1)
128private void ValidateExistingOrSetNewProtectionLevel(MessagePartDescription part, MessageDescription message, OperationDescription operation, ContractDescription contract, ProtectionLevel newProtectionLevel)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelRequirements.cs (1)
20public static void ComputeContractRequirements(ContractDescription contractDescription,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (1)
116ContractDescription contractDescription = serviceEndpoint.Contract;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransactionFlowBindingElement.cs (1)
120internal bool IsFlowEnabled(ContractDescription contract)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ContractDescription.cs (9)
152public static ContractDescription GetContract(Type contractType) 161public static ContractDescription GetContract(Type contractType, Type serviceType) 170ContractDescription description = typeLoader.LoadContractDescription(contractType, serviceType); 174public static ContractDescription GetContract(Type contractType, object serviceImplementation) 184ContractDescription description = typeLoader.LoadContractDescription(contractType, serviceType, serviceImplementation); 188public Collection<ContractDescription> GetInheritedContracts() 190Collection<ContractDescription> result = new Collection<ContractDescription>(); 196ContractDescription inheritedContract = od.DeclaringContract;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DispatcherBuilder.cs (3)
21ContractDescription contractDescription = serviceEndpoint.Contract; 187ContractDescription contractDescription = serviceEndpoint.Contract; 204private static void BindOperations(ContractDescription contract, ClientRuntime proxy, DispatchRuntime dispatch)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\IContractBehavior.cs (4)
14void Validate(ContractDescription contractDescription, ServiceEndpoint endpoint); 15void ApplyDispatchBehavior(ContractDescription contractDescription, ServiceEndpoint endpoint, DispatchRuntime dispatchRuntime); 16void ApplyClientBehavior(ContractDescription contractDescription, ServiceEndpoint endpoint, ClientRuntime clientRuntime); 17void AddBindingParameters(ContractDescription contractDescription, ServiceEndpoint endpoint, BindingParameterCollection bindingParameters);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\IContractResolver.cs (1)
9ContractDescription ResolveContract(string contractName);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExporter.cs (1)
47public abstract void ExportContract(ContractDescription contract);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataImporter.cs (4)
18private readonly Dictionary<XmlQualifiedName, ContractDescription> _knownContracts = new Dictionary<XmlQualifiedName, ContractDescription>(); 65public Dictionary<XmlQualifiedName, ContractDescription> KnownContracts 71public abstract Collection<ContractDescription> ImportAllContracts();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationDescription.cs (4)
23private ContractDescription _declaringContract; 37public OperationDescription(string name, ContractDescription declaringContract) 62internal OperationDescription(string name, ContractDescription declaringContract, bool validateRpcWrapperName) 151public ContractDescription DeclaringContract
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\PolicyConversionContext.cs (2)
15private readonly ContractDescription _contract; 34public ContractDescription Contract { get { return _contract; } }
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerationContext.cs (4)
16private readonly ContractDescription _contract; 31public ServiceContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ContractDescription contract, CodeTypeDeclaration contractType) 45public ServiceContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ContractDescription contract, CodeTypeDeclaration contractType, CodeTypeDeclaration duplexCallbackType) 75public ContractDescription Contract
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (12)
28private Dictionary<ContractDescription, Type> _referencedTypes; 29private Dictionary<ContractDescription, ServiceContractGenerationContext> _generatedTypes; 46_generatedTypes = new Dictionary<ContractDescription, ServiceContractGenerationContext>(); 48_referencedTypes = new Dictionary<ContractDescription, Type>(); 85public Dictionary<ContractDescription, Type> ReferencedTypes 110public CodeTypeReference GenerateServiceContractType(ContractDescription contractDescription) 117private CodeTypeReference GenerateServiceContractTypeInternal(ContractDescription contractDescription) 214public ServiceContractGenerationContext CreateContext(ContractDescription contractDescription) 223private void VisitContract(ContractDescription contract) 239private void Visit(ContractDescription contractDescription) 424private static bool IsDuplex(ContractDescription contract) 564private static IEnumerable<IServiceContractGenerationExtension> EnumerateBehaviorExtensions(ContractDescription contract)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceEndpoint.cs (5)
20private ContractDescription _contract; 28public ServiceEndpoint(ContractDescription contract) 35public ServiceEndpoint(ContractDescription contract, Binding binding, EndpointAddress address) 76public ContractDescription Contract 220ContractDescription contract = this.Contract;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
104ContractDescription contract = operation.DeclaringContract;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (22)
45private readonly Dictionary<Type, ContractDescription> _contracts; 51_contracts = new Dictionary<Type, ContractDescription>(); 56private ContractDescription LoadContractDescriptionHelper(Type contractType, Type serviceType, object serviceImplementation) 58ContractDescription contractDescription; 87foreach (ContractDescription inheritedContract in contractDescription.GetInheritedContracts()) 156public ContractDescription LoadContractDescription(Type contractType) 163public ContractDescription LoadContractDescription(Type contractType, Type serviceType) 171public ContractDescription LoadContractDescription(Type contractType, Type serviceType, object serviceImplementation) 180private ContractDescription LoadOutputChannelContractDescription() 184ContractDescription contract = new ContractDescription(contractName.Name, contractName.Namespace); 195private ContractDescription LoadRequestChannelContractDescription() 199ContractDescription contract = new ContractDescription(contractName.Name, contractName.Namespace); 212private void AddBehaviors(ContractDescription contractDesc, Type implType, bool implIsCallback, ContractReflectionInfo reflectionInfo) 315private static void UpdateContractDescriptionWithAttributesFromServiceType(ContractDescription description, Type serviceType) 328private void UpdateOperationsWithInterfaceAttributes(ContractDescription contractDesc, ContractReflectionInfo reflectionInfo) 671private void CreateOperationDescriptions(ContractDescription contractDescription, 674ContractDescription declaringContract, 738private ContractDescription CreateContractDescription(ServiceContractAttribute contractAttr, Type contractType, Type serviceType, out ContractReflectionInfo reflectionInfo, object serviceImplementation) 743ContractDescription contractDescription = new ContractDescription(contractName.Name, contractName.Namespace); 771ContractDescription inheritedContractDescription = LoadContractDescriptionHelper(inheritedContractType, serviceType, serviceImplementation); 847private OperationDescription CreateOperationDescription(ContractDescription contractDescription, MethodInfo methodInfo, MessageDirection direction, 848ContractReflectionInfo reflectionInfo, ContractDescription declaringContract)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlContractConversionContext.cs (3)
22private readonly ContractDescription _contract; 33internal WsdlContractConversionContext(ContractDescription contract, WsdlNS.PortType wsdlPortType) 88public ContractDescription Contract { get { return _contract; } }
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (13)
28private Dictionary<ContractDescription, WsdlContractConversionContext> _exportedContracts 29= new Dictionary<ContractDescription, WsdlContractConversionContext>(); 33public override void ExportContract(ContractDescription contract) 254private WsdlNS.PortType CreateWsdlPortType(ContractDescription contract) 269private WsdlNS.Operation CreateWsdlOperation(OperationDescription operation, ContractDescription contract) 375private WsdlNS.OperationBinding CreateWsdlOperationBinding(ContractDescription contract, OperationDescription operation) 1036internal static XmlQualifiedName GetPortTypeQName(ContractDescription contract) 1086internal static string GetWsdlOperationName(OperationDescription operationDescription, ContractDescription parentContractDescription) 1102internal static void AddUsingSessionAttributeIfNeeded(WsdlNS.PortType wsdlPortType, ContractDescription contract) 1124OperationDescription operation, ContractDescription contract) 1200private Exception ThrowExtensionException(ContractDescription contract, IWsdlExportExtension exporter, Exception e) 1228public readonly ContractDescription Contract; 1231public BindingDictionaryKey(ContractDescription contract, Binding binding)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (19)
103public override Collection<ContractDescription> ImportAllContracts() 109Collection<ContractDescription> contracts = new Collection<ContractDescription>(); 116ContractDescription contract = ImportWsdlPortType(wsdlPortType, WsdlPortTypeImportOptions.ReuseExistingContracts, ErrorBehavior.DoNotThrowExceptions); 164public ContractDescription ImportContract(WsdlNS.PortType wsdlPortType) 220internal ServiceEndpointCollection ImportEndpoints(ContractDescription contract) 298private ContractDescription ImportWsdlPortType(WsdlNS.PortType wsdlPortType, WsdlPortTypeImportOptions importOptions, ErrorBehavior errorBehavior) 305ContractDescription contractDescription = null; 377ContractDescription contractDescription = GetOrImportContractDescription(wsdlBinding.Type, out wasExistingContract); 533private ContractDescription CreateContractDescription(WsdlNS.PortType wsdlPortType, XmlQualifiedName wsdlPortTypeQName) 535ContractDescription contractDescription; 542private OperationDescription CreateOperationDescription(WsdlNS.PortType wsdlPortType, WsdlNS.Operation wsdlOperation, ContractDescription contract) 573private ContractDescription GetOrImportContractDescription(XmlQualifiedName wsdlPortTypeQName, out bool wasExistingContractDescription) 575ContractDescription contractDescription; 642private bool TryFindExistingContract(XmlQualifiedName wsdlPortTypeQName, out ContractDescription existingContract) 981private static OperationDescription FindOperationDescription(ContractDescription contract, WsdlNS.OperationBinding wsdlOperationBinding) 992private static bool CompareOperations(OperationDescription operationDescription, ContractDescription parentContractDescription, WsdlNS.OperationBinding wsdlOperationBinding) 1273internal static void SetSession(ContractDescription contractDescription, WsdlNS.PortType wsdlPortType) 1511private IEnumerable<WsdlNS.Binding> FindBindingsForContract(ContractDescription contract)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (3)
83internal static void AddBehaviors(ContractDescription contract) 88internal static void AddBuiltInBehaviors(ContractDescription contract) 93private static void AddBehaviors(ContractDescription contract, bool builtInOperationBehavior)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (5)
14void IContractBehavior.Validate(ContractDescription description, ServiceEndpoint endpoint) 18void IContractBehavior.AddBindingParameters(ContractDescription description, ServiceEndpoint endpoint, BindingParameterCollection parameters) 22void IContractBehavior.ApplyDispatchBehavior(ContractDescription description, ServiceEndpoint endpoint, DispatchRuntime dispatch) 28void IContractBehavior.ApplyClientBehavior(ContractDescription description, ServiceEndpoint endpoint, ClientRuntime proxy) 37internal MethodInfoOperationSelector(ContractDescription description, MessageDirection directionThatRequiresClientOpSelection)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ChannelProtectionRequirements.cs (3)
154internal static ChannelProtectionRequirements CreateFromContract(ContractDescription contract, ISecurityCapabilities bindingElement, bool isForClient) 183internal static ChannelProtectionRequirements CreateFromContractAndUnionResponseProtectionRequirements(ContractDescription contract, ISecurityCapabilities bindingElement, bool isForClient) 206internal static ChannelProtectionRequirements CreateFromContract(ContractDescription contract, ProtectionLevel defaultRequestProtectionLevel, ProtectionLevel defaultResponseProtectionLevel, bool isForClient)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (2)
19public static ContractDescription NullContract = new ContractDescription("null"); 2998ContractDescription contract = endpoint.Contract;
ImportModule.cs (9)
67foreach (ContractDescription contractDescription in serviceDescriptor.Contracts) 145Collection<ContractDescription> contracts = new Collection<ContractDescription>(serviceDescriptor.Contracts.ToList()); 183foreach (ContractDescription contract in serviceDescriptor.Contracts) 376private readonly Dictionary<Binding, ContractDescription> _bindingContractMapping = new Dictionary<Binding, ContractDescription>(); 406private readonly HashSet<ContractDescription> _httpBindingContracts = new HashSet<ContractDescription>(); 425public bool IsHttpBindingContract(ContractDescription contract)
Metadata\ServiceDescriptor.cs (10)
69public IEnumerable<ContractDescription> Contracts { get; private set; } = new List<ContractDescription>(); 185var orphanContracts = new List<ContractDescription>(this.Contracts); 191List<ContractDescription> contracts = new List<ContractDescription>(); 219foreach (ContractDescription contract in orphanContracts) 379public ServiceInfo(string name, IEnumerable<ContractDescription> contracts) 385public ServiceInfo(ContractDescription contract) 388this.Contracts = new List<ContractDescription> { contract }; 397public IEnumerable<ContractDescription> Contracts { get; private set; }