1 write to _builder
System.Web.Extensions (1)
Script\Services\ClientProxyGenerator.cs (1)
32
_builder
= new StringBuilder();
115 references to _builder
System.Web.Extensions (115)
Script\Services\ClientProxyGenerator.cs (113)
51
return
_builder
.ToString();
57
_builder
.Append(typeName).Append(".registerClass('").Append(typeName).Append("',Sys.Net.WebServiceProxy);\r\n");
62
_builder
.Append("function() {\r\n");
63
_builder
.Append(GetProxyTypeName(webServiceData)).Append(".initializeBase(this);\r\n");
65
_builder
.Append("}\r\n");
70
_builder
.Append("{\r\n");
72
_builder
.Append("_get_path:function() {\r\n var p = this.get_path();\r\n if (p) return p;\r\n else return ");
73
_builder
.Append(GetProxyTypeName(webServiceData)).Append("._staticInstance.get_path();},\r\n");
77
_builder
.Append(",\r\n");
82
_builder
.Append("}\r\n");
90
_builder
.Append("this._timeout = 0;\r\n");
91
_builder
.Append("this._userContext = null;\r\n");
92
_builder
.Append("this._succeeded = null;\r\n");
93
_builder
.Append("this._failed = null;\r\n");
104
_builder
.Append(className).Append('.').Append(methodName).Append("= function(");
115
_builder
.Append(argBuilder.ToString()).Append(") {");
119
_builder
.Append("\r\n");
120
_builder
.Append(_docCommentCache[methodName]);
123
_builder
.Append(className).Append("._staticInstance.").Append(methodName).Append('(');
124
_builder
.Append(argBuilder.ToString()).Append("); }\r\n");
140
_builder
.Append(typeName).Append("._staticInstance = new ").Append(typeName).Append("();\r\n");
144
_builder
.Append(typeName).Append(".set_path = function(value) {\r\n");
145
_builder
.Append(typeName).Append("._staticInstance.set_path(value); }\r\n");
146
_builder
.Append(typeName).Append(".get_path = function() { \r\n/// <value type=\"String\" mayBeNull=\"true\">The service url.</value>\r\nreturn ");
147
_builder
.Append(typeName).Append("._staticInstance.get_path();}\r\n");
149
_builder
.Append(typeName).Append(".set_timeout = function(value) {\r\n");
150
_builder
.Append(typeName).Append("._staticInstance.set_timeout(value); }\r\n");
151
_builder
.Append(typeName).Append(".get_timeout = function() { \r\n/// <value type=\"Number\">The service timeout.</value>\r\nreturn ");
152
_builder
.Append(typeName).Append("._staticInstance.get_timeout(); }\r\n");
154
_builder
.Append(typeName).Append(".set_defaultUserContext = function(value) { \r\n");
155
_builder
.Append(typeName).Append("._staticInstance.set_defaultUserContext(value); }\r\n");
156
_builder
.Append(typeName).Append(".get_defaultUserContext = function() { \r\n/// <value mayBeNull=\"true\">The service default user context.</value>\r\nreturn ");
157
_builder
.Append(typeName).Append("._staticInstance.get_defaultUserContext(); }\r\n");
159
_builder
.Append(typeName).Append(".set_defaultSucceededCallback = function(value) { \r\n ");
160
_builder
.Append(typeName).Append("._staticInstance.set_defaultSucceededCallback(value); }\r\n");
161
_builder
.Append(typeName).Append(".get_defaultSucceededCallback = function() { \r\n/// <value type=\"Function\" mayBeNull=\"true\">The service default succeeded callback.</value>\r\nreturn ");
162
_builder
.Append(typeName).Append("._staticInstance.get_defaultSucceededCallback(); }\r\n");
164
_builder
.Append(typeName).Append(".set_defaultFailedCallback = function(value) { \r\n");
165
_builder
.Append(typeName).Append("._staticInstance.set_defaultFailedCallback(value); }\r\n");
166
_builder
.Append(typeName).Append(".get_defaultFailedCallback = function() { \r\n/// <value type=\"Function\" mayBeNull=\"true\">The service default failed callback.</value>\r\nreturn ");
167
_builder
.Append(typeName).Append("._staticInstance.get_defaultFailedCallback(); }\r\n");
169
_builder
.Append(typeName).Append(".set_enableJsonp = function(value) { ");
170
_builder
.Append(typeName).Append("._staticInstance.set_enableJsonp(value); }\r\n");
171
_builder
.Append(typeName).Append(".get_enableJsonp = function() { \r\n/// <value type=\"Boolean\">Specifies whether the service supports JSONP for cross domain calling.</value>\r\nreturn ");
172
_builder
.Append(typeName).Append("._staticInstance.get_enableJsonp(); }\r\n");
174
_builder
.Append(typeName).Append(".set_jsonpCallbackParameter = function(value) { ");
175
_builder
.Append(typeName).Append("._staticInstance.set_jsonpCallbackParameter(value); }\r\n");
176
_builder
.Append(typeName).Append(".get_jsonpCallbackParameter = function() { \r\n/// <value type=\"String\">Specifies the parameter name that contains the callback function name for a JSONP request.</value>\r\nreturn ");
177
_builder
.Append(typeName).Append("._staticInstance.get_jsonpCallbackParameter(); }\r\n");
180
_builder
.Append(typeName).Append(".set_path = function(value) { ");
181
_builder
.Append(typeName).Append("._staticInstance.set_path(value); }\r\n");
182
_builder
.Append(typeName).Append(".get_path = function() { return ");
183
_builder
.Append(typeName).Append("._staticInstance.get_path(); }\r\n");
185
_builder
.Append(typeName).Append(".set_timeout = function(value) { ");
186
_builder
.Append(typeName).Append("._staticInstance.set_timeout(value); }\r\n");
187
_builder
.Append(typeName).Append(".get_timeout = function() { return ");
188
_builder
.Append(typeName).Append("._staticInstance.get_timeout(); }\r\n");
190
_builder
.Append(typeName).Append(".set_defaultUserContext = function(value) { ");
191
_builder
.Append(typeName).Append("._staticInstance.set_defaultUserContext(value); }\r\n");
192
_builder
.Append(typeName).Append(".get_defaultUserContext = function() { return ");
193
_builder
.Append(typeName).Append("._staticInstance.get_defaultUserContext(); }\r\n");
195
_builder
.Append(typeName).Append(".set_defaultSucceededCallback = function(value) { ");
196
_builder
.Append(typeName).Append("._staticInstance.set_defaultSucceededCallback(value); }\r\n");
197
_builder
.Append(typeName).Append(".get_defaultSucceededCallback = function() { return ");
198
_builder
.Append(typeName).Append("._staticInstance.get_defaultSucceededCallback(); }\r\n");
200
_builder
.Append(typeName).Append(".set_defaultFailedCallback = function(value) { ");
201
_builder
.Append(typeName).Append("._staticInstance.set_defaultFailedCallback(value); }\r\n");
202
_builder
.Append(typeName).Append(".get_defaultFailedCallback = function() { return ");
203
_builder
.Append(typeName).Append("._staticInstance.get_defaultFailedCallback(); }\r\n");
205
_builder
.Append(typeName).Append(".set_enableJsonp = function(value) { ");
206
_builder
.Append(typeName).Append("._staticInstance.set_enableJsonp(value); }\r\n");
207
_builder
.Append(typeName).Append(".get_enableJsonp = function() { return ");
208
_builder
.Append(typeName).Append("._staticInstance.get_enableJsonp(); }\r\n");
210
_builder
.Append(typeName).Append(".set_jsonpCallbackParameter = function(value) { ");
211
_builder
.Append(typeName).Append("._staticInstance.set_jsonpCallbackParameter(value); }\r\n");
212
_builder
.Append(typeName).Append(".get_jsonpCallbackParameter = function() { return ");
213
_builder
.Append(typeName).Append("._staticInstance.get_jsonpCallbackParameter(); }\r\n");
235
_builder
.Append(typeName).Append(".set_path(\"").Append(proxyPath).Append("\");\r\n");
237
_builder
.Append(typeName).Append(".set_enableJsonp(true);\r\n");
240
_builder
.Append(typeName).Append(".set_jsonpCallbackParameter(").Append(JavaScriptSerializer.SerializeInternal(jsonpParameterName)).Append(");\r\n");
284
_builder
.Append(methodName).Append(':');
302
_builder
.Append("function(").Append(args.ToString()).Append(") {\r\n");
305
_builder
.Append(docCommentsString);
307
_builder
.Append("return this._invoke(this._get_path(), ");
308
_builder
.Append("'").Append(methodName).Append("',");
309
_builder
.Append(useGet).Append(',');
310
_builder
.Append(argsDict.ToString()).Append(",succeededCallback,failedCallback,userContext); }");
320
_builder
.Append("var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;\r\n");
331
_builder
.Append("if (typeof(").Append(typeName).Append(") === 'undefined') {\r\n");
334
_builder
.Append("gtc(\"");
335
_builder
.Append(typeID);
336
_builder
.Append("\");\r\n");
337
_builder
.Append(typeName).Append(".registerClass('").Append(typeName).Append("');\r\n}\r\n");
351
_builder
.Append("if (typeof(").Append(typeName).Append(") === 'undefined') {\r\n");
353
_builder
.Append("var ");
355
_builder
.Append(typeName).Append(" = function() { throw Error.invalidOperation(); }\r\n");
356
_builder
.Append(typeName).Append(".prototype = {");
358
if (i > 0)
_builder
.Append(',');
359
_builder
.Append(enumNames[i]);
360
_builder
.Append(": ");
362
_builder
.Append((ulong)enumValues[i]);
365
_builder
.Append(enumValues[i]);
368
_builder
.Append("}\r\n");
369
_builder
.Append(typeName).Append(".registerEnum('").Append(typeName).Append('\'');
370
_builder
.Append(", true);\r\n}\r\n");
389
_builder
.Append("var ");
392
_builder
.Append(name);
394
_builder
.Append(".prototype");
396
_builder
.Append('=');
413
_builder
.Append("Type.registerNamespace('").Append(ns).Append("');\r\n");
442
_builder
.Append("if (typeof(" + fullPath + ") === \"undefined\") {\r\n ");
445
_builder
.Append("var ");
449
_builder
.Append(fullPath + " = {};\r\n}\r\n");
Script\Services\PageClientProxyGenerator.cs (2)
47
_builder
.Append("PageMethods.prototype = ");
50
_builder
.Append("var PageMethods = ");