Пример #1
0
        public async Task <ActionResult> Clear()
        {
            try
            {
                await Tracer.Info("Clearing log entries");

                var proxy = new AdministrationServiceClient(AuthenticationHelper.GetSessionId());
                proxy.ClearLog();
                return(new HttpStatusCodeResult(HttpStatusCode.OK));
            }
            catch (Exception ex)
            {
                this.HandleException("Error while clearing log", ex);
            }

            return(new HttpStatusCodeResult(HttpStatusCode.InternalServerError));
        }