コード例 #1
0
        public void WsdlImported(WsdlImporter importer, Collection <ServiceEndpoint> endpoints, Collection <Binding> bindings, Collection <ContractDescription> contracts)
        {
            RunFixups(MetadataFixup.GetPostFixups(importer, endpoints, bindings, contracts), _options);

            bool hasContractOperations = false;

            foreach (var contract in contracts)
            {
                if (contract.Operations.Count > 0)
                {
                    hasContractOperations = true;
                    break;
                }
            }

            if (endpoints.Count == 0 || bindings.Count == 0 || contracts.Count == 0 || !hasContractOperations)
            {
                MetadataConversionError error = new MetadataConversionError(SR.ErrNoCompatibleEndpoints, isWarning: true);
                if (!importer.Errors.Contains(error))
                {
                    importer.Errors.Add(error);
                }
            }

            UpdateExitStatus(importer.Errors);
            _endpoints = endpoints;
        }
コード例 #2
0
 public void WsdlImporting(WsdlImporter importer)
 {
     RunFixups(MetadataFixup.GetPreFixups(importer), _options);
     _isVB = IsVB(importer);
     UpdateExitStatus(importer.Errors);
 }