Пример #1
0
        public static void Report(string message)
        {
            var rep = new model.Report();

            rep.CID     = "Undefined";
            rep.Id      = 1;
            rep.Message = message;
            rep.Details = null;
            core.ReportSystem.Save(rep);
            core.ReportSystem.Send(rep);
        }
Пример #2
0
        public static void Report(Implement.InternalException lex)
        {
            var rep = new model.Report();

            rep.CID     = "Undefined";
            rep.Id      = lex.Code;
            rep.Message = lex.Message;
            rep.Details = ValuesEx.To(lex).ToJson();
            core.ReportSystem.Save(rep);
            core.ReportSystem.Send(rep);
        }