Ejemplo n.º 1
0
        public HttpResponseMessage GetFuelError()
        {
            var dateStart = DateTime.Now;

            _performancelog.Debug($"Start,SystemController,GetFuelError,{string.Empty},{dateStart:hh.mm.ss.ffffff}");

            var content = string.Empty;
            var fs      = _mainManager.GetErrorLog();

            if (fs != null)
            {
                content = Helper.CreateBytes(fs);
            }
            _performancelog.Debug($"End,SystemController,GetFuelError,{DateTime.Now.Subtract(dateStart).TotalMilliseconds},{DateTime.Now:hh.mm.ss.ffffff}");

            return(Request.CreateResponse(HttpStatusCode.OK, content));
        }