public MailingChannelService( EmailSendingService sendService, EmailRecvService recvService, ILogger <MailingChannelService> logger) { this.sendService = sendService; this.recvService = recvService; this.logger = logger; recvService.OnEmailRecv += this.dealWithChannel; recvService.BeginEmailLoop(); }
public EmailRecvAdaptor( EmailRecvService recv, EmailSendingService send, ObjectStorageService oss, DatabaseService db, ILogger <EmailRecvAdaptor> logger) { this.recv = recv; this.send = send; this.oss = oss; this.db = db; this.logger = logger; this.AdaptServices(); }