mirror of
https://github.com/riperiperi/FreeSO
synced 2026-08-13 20:26:13 -04:00
MPL per-file was used in older project files, but should apply to the whole project, so having it there was redundant.
21 lines
587 B
C#
21 lines
587 B
C#
using FSO.Common.DataService;
|
|
using FSO.Common.DataService.Framework;
|
|
using Ninject.Modules;
|
|
|
|
namespace FSO.Server.DataService
|
|
{
|
|
public class ShardDataServiceModule : NinjectModule
|
|
{
|
|
private ServerNFSProvider NFSProvider;
|
|
public ShardDataServiceModule(string simNFS)
|
|
{
|
|
NFSProvider = new ServerNFSProvider(simNFS);
|
|
}
|
|
|
|
public override void Load()
|
|
{
|
|
this.Bind<IServerNFSProvider>().ToConstant(NFSProvider);
|
|
this.Bind<IDataService>().To<ServerDataService>().InSingletonScope();
|
|
}
|
|
}
|
|
}
|