Example #1
0
 /// <summary>
 /// 尝试出队,获取电子邮件
 /// </summary>
 /// <param name="box">电子邮件</param>
 public bool TryDequeue(out EmailBox box) => MailQueue.TryDequeue(out box);
 /// <summary>
 /// 发送邮件
 /// </summary>
 /// <param name="box">电子邮件</param>
 protected abstract void SendMail(EmailBox box);
Example #3
0
 /// <summary>
 /// 入队
 /// </summary>
 /// <param name="box">电子邮件</param>
 public void Enqueue(EmailBox box) => MailQueue.Enqueue(box);