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)); }
public MailAlerter(MailAlerterConfiguration c) { _c = c; }