示例#1
0
 public ValueTask <bool> ApplyConfigurationAsync(IActivityMonitor m, IHandlerConfiguration c)
 {
     if (c is MailAlerterConfiguration newC && newC.Email == _c.Email)
     {
         _c = newC;
         return(ValueTask.FromResult(true));
     }
     return(ValueTask.FromResult(false));
 }
示例#2
0
 public MailAlerter(MailAlerterConfiguration c)
 {
     _c = c;
 }