Ejemplo n.º 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));
        }
Ejemplo n.º 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);
 }