示例#1
0
        public void Report(Tracked.Container container)
        {
            var time = DateTime.Now;

            if (string.IsNullOrEmpty(Error))
            {
                container.PushUptime(time, Time);
            }
            else
            {
                container.PushDowntime(time, Error);
            }
        }
示例#2
0
        public void Report(Tracked.Container container)
        {
            var time = DateTime.Now;

            if (Error == null)
            {
                var message = Html.GetTitle(Message) ?? Message;
                container.PushUptime(time, message);
            }
            else
            {
                container.PushDowntime(time, Error.Message);
            }
        }