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