Example #1
0
 public MailingChannelService(
     EmailSendingService sendService,
     EmailRecvService recvService,
     ILogger <MailingChannelService> logger)
 {
     this.sendService         = sendService;
     this.recvService         = recvService;
     this.logger              = logger;
     recvService.OnEmailRecv += this.dealWithChannel;
     recvService.BeginEmailLoop();
 }
Example #2
0
 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();
 }