protected void Application_Start() { // create DI container //カプセル化 IKernel kernel = FactoryCore.getKernel(); // binding Di container kernel.Binding <IRepository, MysqlRepo>(); kernel.Binding <IAccountProc, AccountProc>(); kernel.Binding <IReserveProc, ReserveProc>(); kernel.Binding <ITestProc, TestProc>(); FactoryCore.getSocket().Run(); //initialize FactoryCore.getList(); }
protected void Application_End() { FactoryCore.getSocket().Shutdown(); }