CRUD implemented
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Logic;
|
||||
using Repository;
|
||||
|
||||
namespace Keychain;
|
||||
|
||||
@@ -25,8 +26,8 @@ class Program
|
||||
private static ServiceProvider SetupServices()
|
||||
{
|
||||
var services = new ServiceCollection();
|
||||
//services.AddTransient<IPasswordStoreService, PasswordStoreService>();
|
||||
services.AddSingleton<IPasswordStoreService, PasswordStoreService>();
|
||||
services.AddSingleton<IRepository, JsonRepository>();
|
||||
return services.BuildServiceProvider();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user