/// <summary> /// Configures the repositories. /// </summary> /// <returns>Task.</returns> private async Task ConfigureNotificationsRepository() { var repo = new SqliteNotificationsRepository(LogManager, ApplicationPaths); await repo.Initialize().ConfigureAwait(false); NotificationsRepository = repo; RegisterSingleInstance(NotificationsRepository); }
/// <summary> /// Configures the repositories. /// </summary> /// <returns>Task.</returns> private async Task ConfigureNotificationsRepository() { var dbFile = Path.Combine(ApplicationPaths.DataPath, "notifications.db"); var connection = await ConnectToDb(dbFile).ConfigureAwait(false); var repo = new SqliteNotificationsRepository(connection, LogManager); repo.Initialize(); NotificationsRepository = repo; RegisterSingleInstance(NotificationsRepository); }