Example #1
0
 public void ProcessRequest(HttpContext httpContext)
 {
     ExTraceGlobals.OehCallTracer.TraceDebug(0L, "OwaEventHttpHandler.ProcessRequest");
     try
     {
         ExTraceGlobals.OehTracer.TraceDebug(0L, "Parsing request");
         string text = httpContext.Request.QueryString["X-SuiteServiceProxyOrigin"] ?? httpContext.Request.Headers["X-SuiteServiceProxyOrigin"];
         if (!string.IsNullOrWhiteSpace(text))
         {
             httpContext.Response.AppendToLog("&SuiteServiceOrigin=" + text);
         }
         OwaEventParserBase parser = this.GetParser();
         this.EventHandler.SetParameterTable(parser.Parse());
         ExTraceGlobals.OehTracer.TraceDebug <string>(0L, "Invoking event {0}", this.EventHandler.EventInfo.Name);
         this.EventHandler.EventInfo.MethodInfo.Invoke(this.EventHandler, BindingFlags.InvokeMethod, null, null, null);
         this.FinishSuccesfulRequest();
     }
     catch (ThreadAbortException)
     {
     }
     catch (TargetInvocationException)
     {
         ExTraceGlobals.OehTracer.TraceDebug(0L, "Handler invocation target threw an exception");
     }
     finally
     {
         if (this.eventHandler != null)
         {
             this.eventHandler.Dispose();
         }
         this.eventHandler = null;
     }
 }
        // Token: 0x060010A3 RID: 4259 RVA: 0x0003FBFC File Offset: 0x0003DDFC
        public IAsyncResult BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, object context)
        {
            ExTraceGlobals.OehCallTracer.TraceDebug(0L, "OwaEventAsyncHttpHandler.BeginProcessRequest");
            string text = httpContext.Request.QueryString["X-SuiteServiceProxyOrigin"] ?? httpContext.Request.Headers["X-SuiteServiceProxyOrigin"];

            if (!string.IsNullOrWhiteSpace(text))
            {
                httpContext.Response.AppendToLog("&SuiteServiceOrigin=" + text);
            }
            ExTraceGlobals.OehTracer.TraceDebug(0L, "Parsing request");
            OwaEventParserBase parser = this.GetParser();

            this.EventHandler.SetParameterTable(parser.Parse());
            ExTraceGlobals.OehTracer.TraceDebug(0L, "Invoking handler");
            object[] parameters = new object[]
            {
                callback,
                context
            };
            object obj = this.EventHandler.EventInfo.BeginMethodInfo.Invoke(this.EventHandler, BindingFlags.InvokeMethod, null, parameters, null);

            return((IAsyncResult)obj);
        }