示例#1
0
文件: Shell.cs 项目: bagundes/klib
        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
文件: Shell.cs 项目: bagundes/klib
        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);
        }