/// <summary> /// Gets the file organization repository. /// </summary> /// <returns>Task{IUserRepository}.</returns> private async Task <IFileOrganizationRepository> GetFileOrganizationRepository() { var repo = new SqliteFileOrganizationRepository(LogManager, ServerConfigurationManager.ApplicationPaths); await repo.Initialize().ConfigureAwait(false); return(repo); }
private IFileOrganizationRepository GetRepository() { var repo = new SqliteFileOrganizationRepository(_logger, _config.ApplicationPaths, _json); repo.Initialize(); return(repo); }
private IFileOrganizationRepository GetRepository() { var repo = new SqliteFileOrganizationRepository( _loggerFactory.CreateLogger <SqliteFileOrganizationRepository>(), _config.ApplicationPaths); repo.Initialize(); return(repo); }