Beispiel #1
0
        protected override Task DoUpdate(LogUpdate model, TimerBaseInformation info, int maxLength)
        {
            var subject = $"[{model.Identifier}] Completed";
            var body    = $@"
{info.Type} Complete!
{info.IdentifierStr}
{info.GetElapsedStr()}
{string.Join("\r\n", model.Other)}
";

            return(Email.SendAsync(EmailImpl, EmailType.Logging, subject, body));
        }
Beispiel #2
0
 protected override Task DoUpdate(LogUpdate model, TimerBaseInformation info, int maxLength)
 {
     Debug.WriteLine(info.Message, $"{info.CategoryStr} {info.GetElapsedStr()}");
     WriteOther(model.Other);
     return(Task.CompletedTask);
 }