예제 #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();
        }
예제 #2
0
 protected void Application_End()
 {
     FactoryCore.getSocket().Shutdown();
 }