Esempio n. 1
0
 public SyncSitesJob(ILogger <SyncSitesJob> logger,
                     IFtpManager ftpManager,
                     IOptions <Dictionary <string, SiteSetting> > options,
                     IPowerShellScriptRunner powerShellScriptRunner,
                     Microsoft.Extensions.Hosting.IHostEnvironment hostingEnvironment,
                     INotificationManager notificationManager,
                     IConfiguration configuration,
                     CheckRunner checkRunner)
 {
     _logger                 = logger;
     _ftpManager             = ftpManager;
     _powerShellScriptRunner = powerShellScriptRunner;
     _hostingEnvironment     = hostingEnvironment;
     _notificationManager    = notificationManager;
     _checkRunner            = checkRunner;
     _webConfigsPath         = configuration["WebConfigs"];
     _basePath               = configuration["BasePath"];
     _replaceWebConfigs      = bool.Parse(configuration["ReplaceWebConfigs"]);
     _webDeployTimeout       = configuration.GetValue <int>("WebDeployTimeout");
     _sites = options.Value;
 }
Esempio n. 2
0
 public SyncDatabaseJob(IPowerShellScriptRunner powerShellScriptRunner)
 {
     _powerShellScriptRunner = powerShellScriptRunner;
 }