HA4IoT.Networking.Http.HttpRequestController.InvokeHandlerAction C# (CSharp) Method

InvokeHandlerAction() private method

private InvokeHandlerAction ( HttpRequestDispatcherAction handler, HttpContext context ) : void
handler HttpRequestDispatcherAction
context HA4IoT.Contracts.Networking.Http.HttpContext
return void
        private void InvokeHandlerAction(HttpRequestDispatcherAction handler, HttpContext context)
        {
            try
            {
                handler.Handler(context);
            }
            catch (BadRequestException)
            {
                context.Response.StatusCode = HttpStatusCode.BadRequest;
            }
        }