25 instantiations of MetadataConversionError
dotnet-svcutil-lib (25)
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (1)
69_requestReplyError = new MetadataConversionError(SR.RequestReplyCallbackContractNotSupported, false);
CodeDomFixup\EndpointSelector.cs (2)
332warning = new MetadataConversionError(validationErrorMsg, isWarning: true); 341warning = new MetadataConversionError(incompatEndpointMsg, isWarning: true);
CodeDomFixup\NoSoapEncodingFixup.cs (1)
30MetadataConversionError warning = new MetadataConversionError(string.Format(CultureInfo.InvariantCulture, SR.ErrIncompatibleContractSoapEncodingFormat, contract.Name), isWarning: true);
CodeDomFixup\WcfCodeGenerationExtension.cs (2)
56MetadataConversionError error = new MetadataConversionError(SR.ErrNoCompatibleEndpoints, isWarning: true); 68MetadataConversionError error = new MetadataConversionError(SR.WrnTargetFrameworkNotSupported_NetNamedPipe, isWarning: true);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
161MetadataConversionError warning = new MetadataConversionError(message, isWarning);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (2)
925parent._context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent._request.MessageName), true/*isWarning*/)); 934parent._context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent._response.MessageName), true/*isWarning*/));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (2)
148warning = new MetadataConversionError(string.Format(SRServiceModel.SchemaValidationError, ex.SourceUri, ex.LineNumber, ex.LinePosition, ex.Message)); 152warning = new MetadataConversionError(string.Format(SRServiceModel.GeneralSchemaValidationError, args.Message));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (2)
229Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.WarnDuplicateBindingQNameNameOnExport, endpoint.Binding.Name, endpoint.Binding.Namespace, endpoint.Contract.Name), true /*isWarning*/)); 545this.Errors.Add(new MetadataConversionError(warningMessage, true));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (4)
782this.Errors.Add(new MetadataConversionError(errorMsg, true)); 1148importer.Errors.Add(new MetadataConversionError(message, false)); 1873this.Errors.Add(new MetadataConversionError(warningMessage, true)); 1891this.Errors.Add(new MetadataConversionError(errormessage, isWarning));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (6)
1946importer.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.UnsupportedBooleanAttribute, OptionalName, e.Message), false)); 2734importer.Errors.Add(new MetadataConversionError(SRServiceModel.UnsupportedSecureConversationBootstrapProtectionRequirements, false)); 2743importer.Errors.Add(new MetadataConversionError(SRServiceModel.UnsupportedSecureConversationBootstrapProtectionRequirements, false)); 2921importer.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.UnableToObtainIssuerMetadata, mexAddress, mexException), false)); 2955importer.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.ErrorImportingIssuerMetadata, mexAddress, InsertEllipsisIfTooLong(error.Message)), error.IsWarning)); 2963importer.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.MultipleIssuerEndpointsFound, mexAddress)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy11.cs (1)
96importer.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.UnsupportedBooleanAttribute, RequireClientCertificateName, e.Message), false));
ImportModule.cs (1)
136var warning = new MetadataConversionError(error.Message, isWarning: true);
35 references to MetadataConversionError
dotnet-svcutil-lib (35)
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (2)
20private MetadataConversionError _requestReplyError; 63private MetadataConversionError RequestReplyError
CodeDomFixup\EndpointSelector.cs (1)
328MetadataConversionError warning;
CodeDomFixup\NoSoapEncodingFixup.cs (1)
30MetadataConversionError warning = new MetadataConversionError(string.Format(CultureInfo.InvariantCulture, SR.ErrIncompatibleContractSoapEncodingFormat, contract.Name), isWarning: true);
CodeDomFixup\WcfCodeGenerationExtension.cs (4)
56MetadataConversionError error = new MetadataConversionError(SR.ErrNoCompatibleEndpoints, isWarning: true); 68MetadataConversionError error = new MetadataConversionError(SR.WrnTargetFrameworkNotSupported_NetNamedPipe, isWarning: true); 102private void UpdateExitStatus(Collection<MetadataConversionError> errors) 104foreach (var err in errors)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (4)
161MetadataConversionError warning = new MetadataConversionError(message, isWarning); 1549private Collection<MetadataConversionError> _errors; 1832_errors = new Collection<MetadataConversionError>(); 1845foreach (MetadataConversionError error in _errors)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataConversionError.cs (2)
25MetadataConversionError otherError = obj as MetadataConversionError;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExporter.cs (3)
16private readonly Collection<MetadataConversionError> _errors = new Collection<MetadataConversionError>(); 38public Collection<MetadataConversionError> Errors
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataImporter.cs (3)
19private readonly Collection<MetadataConversionError> _errors = new Collection<MetadataConversionError>(); 55public Collection<MetadataConversionError> Errors
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (3)
129static internal void Compile(XmlSchemaSet schemaSet, Collection<MetadataConversionError> errors) 141static internal void HandleSchemaValidationError(object sender, ValidationEventArgs args, Collection<MetadataConversionError> errors) 143MetadataConversionError warning = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (3)
33private Collection<MetadataConversionError> _errors = new Collection<MetadataConversionError>(); 100public Collection<MetadataConversionError> Errors
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (1)
2954MetadataConversionError error = wsdlImporter.Errors[i];
ImportModule.cs (2)
132var error = _wsdlImporter.Errors[idx]; 136var warning = new MetadataConversionError(error.Message, isWarning: true);
Metadata\ServiceDescriptor.cs (2)
73public IEnumerable<MetadataConversionError> MetadataConversionErrors { get; private set; } = new List<MetadataConversionError>();
ToolConsole.cs (4)
143internal static void WriteConversionError(MetadataConversionError conversionError) 159internal static void WriteConversionErrors(Collection<MetadataConversionError> errors) 166foreach (var err in errors) 189foreach (MetadataConversionError conversionError in errors)