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

			SetHeader(e.Request.Headers, "Authorization", CurrentOauthToken);
		}
Exemplo n.º 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));
 }
Exemplo n.º 4
0
 private static void JsonRequestFactory_ConfigureRequest(object sender, WebRequestEventArgs e)
 {
     e.Request.Timeout = 10000;
 }