/// <summary> /// Raises the <see cref="WebEventReceived"/> event. /// </summary> /// <param name="responder">Contains request data sent by the the client and functionality to respond to the request.</param> /// <param name="method">The incoming http method. </param> /// <param name="path">The path of the requested resource.</param> internal virtual void OnWebEventReceived(string path, WebServer.HttpMethod method, Responder responder) { if (onWebEventReceived == null) { onWebEventReceived = new ReceivedWebEventHandler(OnWebEventReceived); } if (_WebEventReceived == null || noHandlerSet) { responder.SendResponse(); } else if (Program.CheckAndInvoke(_WebEventReceived, onWebEventReceived, path, method, responder)) { _WebEventReceived(path, method, responder); } }
/// <summary> /// Raises the <see cref="WebEventReceived"/> event. /// </summary> /// <param name="responder">Contains request data sent by the the client and functionality to respond to the request.</param> /// <param name="method">The incoming http method. </param> /// <param name="path">The path of the requested resource.</param> internal virtual void OnWebEventReceived(string path, WebServer.HttpMethod method, Responder responder) { if (onWebEventReceived == null) onWebEventReceived = new ReceivedWebEventHandler(OnWebEventReceived); if (_WebEventReceived == null || noHandlerSet) { responder.SendResponse(); } else if (Program.CheckAndInvoke(_WebEventReceived, onWebEventReceived, path, method, responder)) { _WebEventReceived(path, method, responder); } }