Added Hangfire and Hangfire SQLite extension for future task framework. Added a basic directory scanning implementation.
This commit is contained in:
parent
b899157015
commit
b3f210a8ab
6 changed files with 169 additions and 2 deletions
|
|
@ -1,10 +1,14 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using API.DTOs;
|
||||
using API.Entities;
|
||||
|
||||
namespace API.Interfaces
|
||||
{
|
||||
public interface IDirectoryService
|
||||
{
|
||||
IEnumerable<string> ListDirectory(string rootPath);
|
||||
|
||||
void ScanLibrary(LibraryDto library);
|
||||
}
|
||||
}
|
||||
|
|
@ -17,6 +17,6 @@ namespace API.Interfaces
|
|||
/// <returns></returns>
|
||||
Task<bool> LibraryExists(string libraryName);
|
||||
|
||||
Task<IEnumerable<LibraryDto>> GetLibrariesForUserAsync(AppUser user);
|
||||
public Task<LibraryDto> GetLibraryForIdAsync(int libraryId);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue