Пример #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();
 }
Пример #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();
 }