BalloonsPop.Highscore.HighscoreModule.Load C# (CSharp) Method

Load() public method

Binds the concrete instances to the kernel.
public Load ( ) : void
return void
        public override void Load()
        {
            kernel.Unbind<IHighscoreHandlingStrategy>();
            kernel.Unbind<IHighscoreTable>();
            kernel.Bind<IHighscoreHandlingStrategy>().To<XmlHandlingStrategy>().WithConstructorArgument("highscore.xml");
            kernel.Bind<IHighscoreTable>().ToMethod(x => kernel.Get<IHighscoreHandlingStrategy>().Load());
        }