internal void NotifyClientCallOut(WebRequest request) { if (RemoteDebugger.IsClientCallOutEnabled()) { debugger = new RemoteDebugger(); debugger.NotifyClientCallOut(request); } else { debugger = null; } }
/// <include file='doc\ClientProtocol.uex' path='docs/doc[@for="WebClientProtocol.GetWebRequest"]/*' /> /// <devdoc> /// <para> /// Creates a new <see cref='System.Net.WebRequest'/> instance for the given url. The base implementation creates a new /// instance using the WebRequest.Create() and then sets request related properties from /// the WebClientProtocol instance. Derived classes can override this method if additional /// properties need to be set on the web request instance. /// </para> /// </devdoc> protected virtual WebRequest GetWebRequest(Uri uri) { if (uri == null) { throw new InvalidOperationException(Res.GetString(Res.WebMissingPath)); } WebRequest request = (WebRequest)WebRequest.Create(uri); PendingSyncRequest = request; request.Timeout = this.timeout; request.ConnectionGroupName = connectionGroupName; request.Credentials = Credentials; request.PreAuthenticate = PreAuthenticate; if (RemoteDebugger.IsClientCallOutEnabled()) { debugger = new RemoteDebugger(); debugger.NotifyClientCallOut(request); } else { debugger = null; } return(request); }
internal void NotifyClientCallOut(WebRequest request) { #if !MONO if (RemoteDebugger.IsClientCallOutEnabled()) { debugger = new RemoteDebugger(); debugger.NotifyClientCallOut(request); } else { debugger = null; } #endif }