public override void Load()
{
EsentStorageManager.InitSystemParameters(cacheSizeMinBytes, cacheSizeMaxBytes);
// bind concrete storage providers
this.Bind<EsentStorageManager>().ToSelf().InSingletonScope()
.WithConstructorArgument("baseDirectory", this.dataDirectory)
.WithConstructorArgument("blockTxesStorageLocations", this.blockTxesStorageLocations);
this.Bind<NetworkPeerStorage>().ToSelf().InSingletonScope()
.WithConstructorArgument("baseDirectory", this.peersDirectory)
.WithConstructorArgument("chainType", this.chainType);
// bind storage providers interfaces
this.Bind<IStorageManager>().ToMethod(x => this.Kernel.Get<EsentStorageManager>()).InSingletonScope();
this.Bind<INetworkPeerStorage>().ToMethod(x => this.Kernel.Get<NetworkPeerStorage>()).InSingletonScope();
}
}