Ejemplo n.º 1
0
        public string SetHandlerLogElementAsDone(int logTypeValue, string handlerUrl, bool error, string errorMessage)
        {
            var logType = (LogType)logTypeValue;

            //MessageBox.Show("SetHandlerLogElementAsDone called"); //
            //window.external.SetHandlerLogElementAsDone(options.lrapSessionGUID, options.lrapPageGUID, stripLRAPFromUrl(options.url), false, null);

            var logElement = OnHandlerJobCompleted?.Invoke(logType, handlerUrl, new JobStatus()
            {
                Success = !error, Message = errorMessage
            });

            return(SerializationHelper.Serialize(logElement, SerializationType.Json));
        }
Ejemplo n.º 2
0
 private LogElementDTO ScriptManager_OnHandlerJobCompleted(LogType logType, string handlerUrl, JobStatus jobStatus)
 {
     return(OnHandlerJobCompleted?.Invoke(this, logType, handlerUrl, jobStatus));
 }