private GeneralSiteSettings MapSettings(Dictionary <string, string> allSettings) { var settings = new GeneralSiteSettings(); _getSettingQueryHelper.SetSettingProperty(settings, s => s.ApplicationName, allSettings); settings.AllowAutomaticUpdates = !_autoUpdateService.IsLocked(); return(settings); }
public void ConfigureServices(IMvcBuilder mvcBuilder) { var isDbLocked = _autoUpdateService.IsLocked(); var connectionString = _databaseSettings.ConnectionString; mvcBuilder .Services .AddHangfire(configuration => configuration .UseSqlServerStorage(connectionString, new SqlServerStorageOptions() { PrepareSchemaIfNecessary = isDbLocked }) .UseFilter(new AutomaticRetryAttribute { Attempts = 0 }) ); }