45 references to WebCodeGenerator
System.Web.Services (45)
System\Web\Services\Description\HttpProtocolImporter.cs (16)
155
WebCodeGenerator
.AddCustomAttribute(metadata, typeof(HttpMethodAttribute), formatterTypes, new string[0], new CodeExpression[0]);
158
CodeMemberMethod mainCodeMethod =
WebCodeGenerator
.AddMethod(this.CodeTypeDeclaration, method.Name, new CodeFlags[parameterTypeNames.Length], parameterTypeNames, parameterNames,
199
CodeMemberMethod beginCodeMethod =
WebCodeGenerator
.AddMethod(this.CodeTypeDeclaration, "Begin" + method.Name, new CodeFlags[asyncParameterTypeNames.Length],
213
CodeMemberMethod endCodeMethod =
WebCodeGenerator
.AddMethod(this.CodeTypeDeclaration, "End" + method.Name, new CodeFlags[1],
244
WebCodeGenerator
.AddEvent(this.CodeTypeDeclaration.Members, delegateInfo.handlerType, handlerName);
247
WebCodeGenerator
.AddCallbackDeclaration(this.CodeTypeDeclaration.Members, callbackMember);
251
CodeMemberMethod asyncCodeMethod =
WebCodeGenerator
.AddAsyncMethod(this.CodeTypeDeclaration, asyncName,
265
WebCodeGenerator
.AddCallbackImplementation(this.CodeTypeDeclaration, callbackName, handlerName, delegateInfo.handlerArgs, methodHasReturn);
268
WebCodeGenerator
.AddDelegate(ExtraCodeClasses, delegateInfo.handlerType, methodHasReturn ? delegateInfo.handlerArgs : typeof(AsyncCompletedEventArgs).FullName);
271
ExtraCodeClasses.Add(
WebCodeGenerator
.CreateArgsClass(delegateInfo.handlerArgs, new string[] { method.MimeReturn.TypeName }, new string[] { "Result" },
336
WebCodeGenerator
.AddCustomAttribute(metadata, typeof(DebuggerStepThroughAttribute), new CodeExpression[0]);
337
WebCodeGenerator
.AddCustomAttribute(metadata, typeof(DesignerCategoryAttribute), new CodeExpression[] { new CodePrimitiveExpression("code") });
349
WebCodeGenerator
.AddImports(this.CodeNamespace,
WebCodeGenerator
.GetNamespacesForTypes(requiredTypes));
355
CodeTypeDeclaration codeClass =
WebCodeGenerator
.CreateClass(this.ClassName, BaseClass.FullName,
361
CodeConstructor ctor =
WebCodeGenerator
.AddConstructor(codeClass, new string[0], new string[0], null, CodeFlags.IsPublic);
System\Web\Services\Description\MimeTextImporter.cs (3)
58
CodeTypeDeclaration codeClass =
WebCodeGenerator
.AddClass(ImportContext.CodeNamespace, typeName, string.Empty, new string[0], null, CodeFlags.IsPublic,
101
WebCodeGenerator
.AddCustomAttribute(metadata, typeof(MatchAttribute), new CodeExpression[] { pattern }, propertyNames, propertyValues);
114
CodeTypeMember member =
WebCodeGenerator
.AddMember(codeClass, fieldTypeName, name, null, metadata, CodeFlags.IsPublic, options);
System\Web\Services\Description\ProtocolImporter.cs (1)
435
CodeMemberMethod asyncCancelMethod =
WebCodeGenerator
.AddMethod(this.CodeTypeDeclaration, cancelMethodName,
System\Web\Services\Description\SoapHttpTransportImporter.cs (1)
21
CodeConstructor ctor =
WebCodeGenerator
.AddConstructor(ImportContext.CodeTypeDeclaration, new string[0], new string[0], null, CodeFlags.IsPublic);
System\Web\Services\Description\SoapProtocolImporter.cs (20)
194
typeFullNames[i + start + specified] =
WebCodeGenerator
.FullTypeName(((SoapParameter)parameters[i]).mapping, codeProvider);
432
WebCodeGenerator
.AddImports(this.CodeNamespace,
WebCodeGenerator
.GetNamespacesForTypes(requiredTypes));
438
CodeTypeDeclaration codeClass =
WebCodeGenerator
.CreateClass(this.ClassName, null,
509
WebCodeGenerator
.AddCustomAttribute(metadata, attributeType, parameters,
594
WebCodeGenerator
.AddMember(CodeTypeDeclaration, mapping.TypeFullName, globalHeader.fieldName, null, null, CodeFlags.IsPublic, ServiceImporter.CodeGenerationOptions);
805
string returnType = parameters.Return == null ? typeof(void).FullName :
WebCodeGenerator
.FullTypeName(parameters.Return, ServiceImporter.CodeGenerator);
807
CodeMemberMethod mainCodeMethod =
WebCodeGenerator
.AddMethod(this.CodeTypeDeclaration, methodName,
857
CodeMemberMethod beginCodeMethod =
WebCodeGenerator
.AddMethod(this.CodeTypeDeclaration, "Begin" + uniqueMethodName,
888
CodeMemberMethod codeMethod =
WebCodeGenerator
.AddMethod(this.CodeTypeDeclaration, "End" + uniqueMethodName,
892
parameters.Return == null ? typeof(void).FullName :
WebCodeGenerator
.FullTypeName(parameters.Return, ServiceImporter.CodeGenerator),
919
WebCodeGenerator
.AddEvent(this.CodeTypeDeclaration.Members, delegateInfo.handlerType, handlerName);
922
WebCodeGenerator
.AddCallbackDeclaration(this.CodeTypeDeclaration.Members, callbackMember);
927
CodeMemberMethod asyncCodeMethod =
WebCodeGenerator
.AddAsyncMethod(this.CodeTypeDeclaration, asyncName,
941
WebCodeGenerator
.AddCallbackImplementation(this.CodeTypeDeclaration, callbackName, handlerName, delegateInfo.handlerArgs, methodHasOutParameters);
945
WebCodeGenerator
.AddDelegate(ExtraCodeClasses, delegateInfo.handlerType, methodHasOutParameters ? delegateInfo.handlerArgs : typeof(AsyncCompletedEventArgs).FullName);
952
asyncReturnTypes[0] = parameters.Return == null ? null :
WebCodeGenerator
.FullTypeName(parameters.Return, ServiceImporter.CodeGenerator);
957
ExtraCodeClasses.Add(
WebCodeGenerator
.CreateArgsClass(delegateInfo.handlerArgs, asyncReturnTypes, asyncReturnNames, ServiceImporter.CodeGenerator.Supports(GeneratorSupport.PartialTypes)));
980
value = new CodeCastExpression(
WebCodeGenerator
.FullTypeName(parameter.mapping, ServiceImporter.CodeGenerator), value);
996
value = new CodeCastExpression(
WebCodeGenerator
.FullTypeName(parameters.Return, ServiceImporter.CodeGenerator), value);
System\Web\Services\Description\WebCodeGenerator.cs (4)
46
a = typeof(
WebCodeGenerator
).Assembly;
287
CodeMemberMethod asyncCompleted =
WebCodeGenerator
.AddMethod(codeClass, callbackName,
317
CodeMemberMethod asyncCodeMethod =
WebCodeGenerator
.AddMethod(codeClass, methodName,
329
asyncCodeMethod =
WebCodeGenerator
.AddMethod(codeClass, methodName,