예제 #1
0
 public SmtpService(EntityApp app, SmtpSettings settings)
 {
     _app      = app;
     _settings = settings;
     _app.RegisterService <ISmtpService>(this);
     _app.RegisterConfig(settings);
 }
예제 #2
0
 public WebCallContextHandler(EntityApp app, WebCallContextHandlerSettings settings) {
   App = app;
   Settings = settings ?? new WebCallContextHandlerSettings();
   App.RegisterConfig(Settings);
   _webCallLog = App.GetService<IWebCallLogService>();
   _errorLog = App.GetService<IErrorLogService>();
   App.RegisterService<IWebCallNotificationService>(this); 
 }
예제 #3
0
 public WebCallContextHandler(EntityApp app, WebCallContextHandlerSettings settings)
 {
     App      = app;
     Settings = settings ?? new WebCallContextHandlerSettings();
     App.RegisterConfig(Settings);
     _webCallLog     = App.GetService <IWebCallLogService>();
     _errorLog       = App.GetService <IErrorLogService>();
     _sessionService = App.GetService <IUserSessionService>();
     App.RegisterService <IWebCallNotificationService>(this);
 }
예제 #4
0
 public PasswordStrengthChecker(EntityApp app, PasswordCheckerSettings settings = null)
 {
     _settings = settings ?? PasswordCheckerSettings.CreateDefault();
     app.RegisterConfig(_settings);
 }
예제 #5
0
 public SmtpService(EntityApp app, SmtpSettings settings)  {
   _app = app; 
   _settings = settings;
   _app.RegisterService<IEmailSendService>(this);
   _app.RegisterConfig(settings); 
 }
예제 #6
0
 public PasswordStrengthChecker(EntityApp app, PasswordCheckerSettings settings = null)
 {
     _settings = settings ?? PasswordCheckerSettings.CreateDefault();
       app.RegisterConfig(_settings);
 }