feat(git-provider): Initial DatabaseManager
This commit is contained in:
parent
93717b4e43
commit
caa65ca7c3
2 changed files with 36 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System.Collections.Concurrent;
|
||||
using System.Diagnostics;
|
||||
using ModuleCore.Database;
|
||||
using ModuleCore.Git.Models;
|
||||
|
||||
namespace ModuleCore.Git;
|
||||
|
|
@ -9,12 +10,14 @@ public class GitManager
|
|||
{
|
||||
private static readonly Lazy<GitManager> GitManagerInstance = new(() => new GitManager());
|
||||
private readonly ConcurrentDictionary<string, InternalGitRegistration> _registrations;
|
||||
private readonly DatabaseManager _db;
|
||||
|
||||
private GitManager()
|
||||
{
|
||||
Debug.WriteLine($"{nameof(GitManager)} init");
|
||||
|
||||
_registrations = new ConcurrentDictionary<string, InternalGitRegistration>();
|
||||
_db = new DatabaseManager("git.db");
|
||||
}
|
||||
|
||||
public static GitManager Instance => GitManagerInstance.Value;
|
||||
|
|
|
|||
Loading…
Reference in a new issue