1 write to ImportContext
System.Web.Services (1)
System\Web\Services\Description\HttpProtocolImporter.cs (1)
47
importer.
ImportContext
= this;
29 references to ImportContext
System.Web.Services (29)
System\Web\Services\Description\MimeAnyImporter.cs (1)
21
if (
ImportContext
.OperationBinding.Output.Extensions.Count == 0) return null;
System\Web\Services\Description\MimeFormImporter.cs (2)
13
MimeContentBinding mimeContentBinding = (MimeContentBinding)
ImportContext
.OperationBinding.Input.Extensions.Find(typeof(MimeContentBinding));
16
MimeParameterCollection parameters =
ImportContext
.ImportStringParametersMessage();
System\Web\Services\Description\MimeTextImporter.cs (9)
29
MimeTextBinding mimeTextBinding = (MimeTextBinding)
ImportContext
.OperationBinding.Output.Extensions.Find(typeof(MimeTextBinding));
32
ImportContext
.UnsupportedOperationBindingWarning(Res.GetString(Res.MissingMatchElement0));
35
methodName = CodeIdentifier.MakeValid(
ImportContext
.OperationBinding.Name);
38
importedReturn.TypeName =
ImportContext
.ClassNames.AddUnique(methodName + "Matches", mimeTextBinding);
47
GenerateCode((MimeTextReturn)importedReturns[i],
ImportContext
.ServiceImporter.CodeGenerationOptions);
58
CodeTypeDeclaration codeClass = WebCodeGenerator.AddClass(
ImportContext
.CodeNamespace, typeName, string.Empty, new string[0], null, CodeFlags.IsPublic,
59
ImportContext
.ServiceImporter.CodeGenerator.Supports(GeneratorSupport.PartialTypes));
105
fieldTypeName =
ImportContext
.ClassNames.AddUnique(CodeIdentifier.MakeValid(match.Type.Length == 0 ? name : match.Type), match);
117
ImportContext
.Warnings |= ServiceDescriptionImportWarnings.OptionalExtensionsIgnored;
System\Web\Services\Description\MimeXmlImporter.cs (17)
33
MimeContentBinding mimeContentBinding = (MimeContentBinding)
ImportContext
.OperationBinding.Output.Extensions.Find(typeof(MimeContentBinding));
44
MimeXmlBinding mimeXmlBinding = (MimeXmlBinding)
ImportContext
.OperationBinding.Output.Extensions.Find(typeof(MimeXmlBinding));
48
switch (
ImportContext
.OutputMessage.Parts.Count) {
50
throw new InvalidOperationException(Res.GetString(Res.MessageHasNoParts1,
ImportContext
.InputMessage.Name));
53
part =
ImportContext
.OutputMessage.Parts[0];
56
part =
ImportContext
.OutputMessage.FindPartByName(mimeXmlBinding.Part);
60
part =
ImportContext
.OutputMessage.FindPartByName(mimeXmlBinding.Part);
75
importer = new XmlSchemaImporter(
ImportContext
.ConcreteSchemas,
ImportContext
.ServiceImporter.CodeGenerationOptions,
ImportContext
.ServiceImporter.CodeGenerator,
ImportContext
.ImportContext);
76
foreach (Type extensionType in
ImportContext
.ServiceImporter.Extensions) {
89
exporter = new XmlCodeExporter(
ImportContext
.CodeNamespace,
ImportContext
.ServiceImporter.CodeCompileUnit,
90
ImportContext
.ServiceImporter.CodeGenerator,
ImportContext
.ServiceImporter.CodeGenerationOptions,
ImportContext
.ExportContext);