forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDepInjectionModule.cs
More file actions
27 lines (25 loc) · 930 Bytes
/
DepInjectionModule.cs
File metadata and controls
27 lines (25 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using L2dotNET.Repositories;
using L2dotNET.Repositories.Contracts;
using L2dotNET.Services;
using L2dotNET.Services.Contracts;
using Ninject.Modules;
namespace L2dotNET
{
public class DepInjectionModule : NinjectModule
{
public override void Load()
{
Bind<IPlayerService>().To<PlayerService>();
Bind<IAccountService>().To<AccountService>();
Bind<IServerService>().To<ServerService>();
Bind<ICheckService>().To<CheckService>();
Bind<IItemService>().To<ItemService>();
Bind<IPlayerRepository>().To<PlayerRepository>();
Bind<IAccountRepository>().To<AccountRepository>();
Bind<IServerRepository>().To<ServerRepository>();
Bind<ICheckRepository>().To<CheckRepository>();
Bind<IItemRepository>().To<ItemRepository>();
Bind<IUnitOfWork>().To<UnitOfWork>();
}
}
}