Added Hangfire with LiteDB for a task running system. At the most basic, this allows us to monitor tasks running on the system (during dev only) and run tasks on a reoccuring or ad-hoc basis.
This commit is contained in:
parent
e1c1719b6a
commit
4fd9943b91
22 changed files with 69 additions and 43 deletions
|
@ -14,13 +14,11 @@ namespace API.Controllers
|
|||
[Authorize]
|
||||
public class UsersController : BaseApiController
|
||||
{
|
||||
private readonly DataContext _context;
|
||||
private readonly IUserRepository _userRepository;
|
||||
private readonly ILibraryRepository _libraryRepository;
|
||||
|
||||
public UsersController(DataContext context, IUserRepository userRepository, ILibraryRepository libraryRepository)
|
||||
public UsersController(IUserRepository userRepository, ILibraryRepository libraryRepository)
|
||||
{
|
||||
_context = context;
|
||||
_userRepository = userRepository;
|
||||
_libraryRepository = libraryRepository;
|
||||
}
|
||||
|
@ -43,7 +41,7 @@ namespace API.Controllers
|
|||
// TODO: We probably need to clean the folders before we insert
|
||||
var library = new Library
|
||||
{
|
||||
Name = createLibraryDto.Name, // TODO: Ensure code handles Library name always being lowercase
|
||||
Name = createLibraryDto.Name.ToLower(),
|
||||
Type = createLibraryDto.Type,
|
||||
AppUsers = new List<AppUser>() { user }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue