Example #1
0
        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();
        }