public GeneratedObjectWebFormService(IWebFormHandler webFormHandler, HttpContext httpContext, UserConnection userConnection) { WebFormHandler = webFormHandler; _httpContext = httpContext; _userConnection = userConnection; }
private WebFormSavingResult GetOptionedSavingResult(IWebFormHandler handler, FormData formData) { var result = new OptionedWebFormSavingResult(); if (formData.options.extendResponseWithExceptionType) { result.exceptionType = (handler as WebFormHandler)?.Exception?.GetType().Name ?? string.Empty; } return(result); }
private WebFormSavingResult GetErrorSavingResult(IWebFormHandler handler, FormData formData) { WebFormSavingResult savingResult; if (formData.options != null) { savingResult = GetOptionedSavingResult(handler, formData); } else { savingResult = new WebFormSavingResult(); } savingResult.resultMessage = handler.ErrorMessage; savingResult.resultCode = -1; return(savingResult); }