public void Init(EntityApp app) {
   _emailService = _app.GetService<IEmailSendService>();
   Util.Check(_emailService != null, "EmailNotificationProvider: failed to retrieve {0} instance.", typeof(IEmailSendService));
   _templateService = _app.GetService<ITemplateTransformService>();
   Util.Check(_templateService != null,
     "EmailNotificationProvider: failed to retrieve {0} instance, add Template module to your app.", typeof(ITemplateTransformService));
 }
示例#2
0
 public void Init(EntityApp app)
 {
     _smtpService = _app.GetService <ISmtpService>();
     Util.Check(_smtpService != null, "EmailNotificationProvider: failed to retrieve {0} instance.", typeof(ISmtpService));
     _templateService = _app.GetService <ITemplateTransformService>();
     Util.Check(_templateService != null,
                "EmailNotificationProvider: failed to retrieve {0} instance, add Template module to your app.", typeof(ITemplateTransformService));
 }