public void Report(Tracked.Container container) { var time = DateTime.Now; if (string.IsNullOrEmpty(Error)) { container.PushUptime(time, Time); } else { container.PushDowntime(time, Error); } }
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); } }