// Token: 0x060010D2 RID: 4306 RVA: 0x0003FFF0 File Offset: 0x0003E1F0 public IHttpHandler GetHandler(HttpContext httpContext, string requestType, string url, string pathTranslated) { ExTraceGlobals.OehCallTracer.TraceDebug(0L, "OwaEventHandlerFactory.GetHandler"); string queryStringParameter = HttpUtilities.GetQueryStringParameter(httpContext.Request, "ns"); string queryStringParameter2 = HttpUtilities.GetQueryStringParameter(httpContext.Request, "ev"); ExTraceGlobals.OehDataTracer.TraceDebug <string, string>(0L, "Request namespace: '{0}', event: '{1}'", queryStringParameter, queryStringParameter2); HttpApplication applicationInstance = httpContext.ApplicationInstance; OwaEventRegistry owaEventRegistry = (OwaEventRegistry)applicationInstance.Application["OwaEventRegistry"]; if (owaEventRegistry == null) { HttpUtilities.EndResponse(httpContext, HttpStatusCode.MethodNotAllowed); return(null); } OwaEventNamespaceAttribute owaEventNamespaceAttribute = owaEventRegistry.FindNamespaceInfo(queryStringParameter); if (owaEventNamespaceAttribute == null) { throw new OwaException(string.Format(CultureInfo.InvariantCulture, "Namespace '{0}' doesn't exist", new object[] { queryStringParameter }), null, this); } OwaEventAttribute owaEventAttribute = owaEventNamespaceAttribute.FindEventInfo(queryStringParameter2); if (owaEventAttribute == null) { throw new OwaException(string.Format(CultureInfo.InvariantCulture, "Event '{0}' doesn't exist", new object[] { queryStringParameter2 }), null, this); } OwaEventVerb owaEventVerb = OwaEventVerbAttribute.Parse(httpContext.Request.HttpMethod); ExTraceGlobals.OehDataTracer.TraceDebug <string>(0L, "Request verb: {0}", httpContext.Request.HttpMethod); if ((owaEventAttribute.AllowedVerbs & owaEventVerb) == OwaEventVerb.Unsupported) { ExTraceGlobals.OehTracer.TraceDebug <OwaEventVerb, OwaEventVerb>(0L, "Verb is not allowed, returning 405. Actual verb: {0}. Allowed: {1}.", owaEventVerb, owaEventAttribute.AllowedVerbs); HttpUtilities.EndResponse(httpContext, HttpStatusCode.MethodNotAllowed); return(null); } OwaEventHandlerBase owaEventHandlerBase = (OwaEventHandlerBase)Activator.CreateInstance(owaEventNamespaceAttribute.HandlerType); owaEventHandlerBase.EventInfo = owaEventAttribute; owaEventHandlerBase.Verb = owaEventVerb; if (owaEventAttribute.IsAsync) { ExTraceGlobals.OehTracer.TraceDebug(0L, "Created async HTTP handler to server OEH request"); return(new OwaEventAsyncHttpHandler(owaEventHandlerBase)); } return(new OwaEventHttpHandler(owaEventHandlerBase)); }
private static DispatchStepResult DispatchIfLastPendingGet(RequestContext requestContext) { if (requestContext.RequestType != OwaRequestType.Oeh) { return(DispatchStepResult.Continue); } ExTraceGlobals.CoreCallTracer.TraceDebug(0L, "[RequestDispatcher::DispatchIfLastPendingGet] entry."); requestContext.UserContext = UserContextManager.GetUserContext(requestContext.HttpContext, false); if (OwaEventHandlerBase.ShouldIgnoreRequest(requestContext, requestContext.UserContext)) { requestContext.HttpStatusCode = HttpStatusCode.BadRequest; return(DispatchStepResult.EndResponse); } return(DispatchStepResult.Continue); }
internal OwaEventXmlParser(OwaEventHandlerBase eventHandler) : base(eventHandler, 4) { }
// Token: 0x060010EC RID: 4332 RVA: 0x000405A3 File Offset: 0x0003E7A3 internal OwaEventParserBase(OwaEventHandlerBase eventHandler, int parameterTableCapacity) { this.eventHandler = eventHandler; this.parameterTable = new Hashtable(parameterTableCapacity); }
// Token: 0x0600109F RID: 4255 RVA: 0x0003FBE0 File Offset: 0x0003DDE0 internal OwaEventAsyncHttpHandler(OwaEventHandlerBase eventHandler) { this.eventHandler = eventHandler; }