Event arguments for the event of creating a WebRequest
Inheritance: System.EventArgs
		public virtual void ConfigureRequest(object sender, WebRequestEventArgs e)
		{
			if (string.IsNullOrEmpty(CurrentOauthToken))
				return;

			SetHeader(e.Request.Headers, "Authorization", CurrentOauthToken);
		}
Example #2
0
		private static void BeginRequest(object sender, WebRequestEventArgs e) {
			GlimpseTimer.Start("Query - " + e.Request.RequestUri.PathAndQuery, GlimpseTimerCategory);
			//GlimpseTimer.Moment();
		}
 private static void BeginRequest(object sender, WebRequestEventArgs e)
 {
     var profiler = MiniProfiler.Current;
     if (profiler != null && e.Request != null)
         _Requests.TryAdd(e.Request.RequestUri.PathAndQuery, profiler.Step("RavenDb: Query - " + e.Request.RequestUri.PathAndQuery));
 }
 private static void JsonRequestFactory_ConfigureRequest(object sender, WebRequestEventArgs e)
 {
     e.Request.Timeout = 10000;
 }