1 write to protocol
System.Web.Services (1)
System\Web\Services\Protocols\WebServiceHandler.cs (1)
40
this.
protocol
= protocol;
57 references to protocol
System.Web.Services (57)
System\Web\Services\Protocols\WebServiceHandler.cs (57)
54
if (
protocol
.IsOneWay)
56
HttpContext context =
protocol
.Context;
60
int cacheDuration =
protocol
.MethodAttribute.CacheDuration;
74
context.Response.BufferOutput =
protocol
.MethodAttribute.BufferResponse;
88
this.wroteException =
protocol
.WriteException(e,
protocol
.Response.OutputStream);
95
protocol
.CreateServerInstance();
99
if (!
protocol
.IsOneWay && RemoteDebugger.IsServerCallInEnabled(
protocol
, out stringBuffer)) {
101
debugger.NotifyServerCallEnter(
protocol
, stringBuffer);
106
TraceMethod userMethod = Tracing.On ? new TraceMethod(
protocol
.Target,
protocol
.MethodInfo.Name, this.parameters) : null;
107
if (Tracing.On) Tracing.Enter(
protocol
.MethodInfo.ToString(), caller, userMethod);
108
object[] returnValues =
protocol
.MethodInfo.Invoke(
protocol
.Target, this.parameters);
109
if (Tracing.On) Tracing.Exit(
protocol
.MethodInfo.ToString(), caller);
117
if (!
protocol
.IsOneWay) {
123
protocol
.DisposeServerInstance();
126
debugger.NotifyServerCallExit(
protocol
.Response);
133
Transactions.InvokeTransacted(new TransactedCallback(this.Invoke),
protocol
.MethodAttribute.TransactionOption);
137
HandleOneWayException(new Exception(Res.GetString(Res.WebConfigExtensionError),
protocol
.OnewayInitException), "ThrowInitException");
147
bool transacted =
protocol
.MethodAttribute.TransactionEnabled;
148
if (
protocol
.IsOneWay) {
151
if (
protocol
.OnewayInitException != null) {
156
parameters =
protocol
.ReadParameters();
165
protocol
.WriteOneWayResponse();
168
parameters =
protocol
.ReadParameters();
172
parameters =
protocol
.ReadParameters();
181
if (!
protocol
.IsOneWay)
197
if (
protocol
.Context != null)
198
oldContext = SwitchContext(
protocol
.Context);
214
if (
protocol
.Context != null)
215
oldContext = SwitchContext(
protocol
.Context);
246
if (
protocol
.MethodAttribute.TransactionEnabled)
249
parameters =
protocol
.ReadParameters();
250
if (
protocol
.IsOneWay) {
265
if (
protocol
.OnewayInitException != null)
266
HandleOneWayException(new Exception(Res.GetString(Res.WebConfigExtensionError),
protocol
.OnewayInitException), "OneWayAsyncInvoke");
269
if (
protocol
.Context != null)
270
oldContext = SwitchContext(
protocol
.Context);
289
protocol
.CreateServerInstance();
293
TraceMethod userMethod = Tracing.On ? new TraceMethod(
protocol
.Target,
protocol
.MethodInfo.Name, this.parameters) : null;
294
if (Tracing.On) Tracing.Enter(
protocol
.MethodInfo.ToString(), caller, userMethod);
296
asyncResult =
protocol
.MethodInfo.BeginInvoke(
protocol
.Target, this.parameters, new AsyncCallback(this.Callback), asyncState);
298
if (Tracing.On) Tracing.Enter(
protocol
.MethodInfo.ToString(), caller);
325
if (
protocol
.IsOneWay)
326
protocol
.WriteOneWayResponse();
335
object[] returnValues =
protocol
.MethodInfo.EndInvoke(
protocol
.Target, asyncResult);
343
if (!
protocol
.IsOneWay)
347
protocol
.DisposeServerInstance();
353
if (
protocol
.IsOneWay) return;
358
bool fullyBuffered =
protocol
.MethodAttribute.BufferResponse;
359
Stream outputStream =
protocol
.Response.OutputStream;
366
protocol
.WriteReturns(returnValues, outputStream);