public DashboardController()
 {
     provider = Membership.Provider;
     Unit = new UnitOfWork();
 }
Beispiel #2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            Unit = new UnitOfWork();

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);

            timer = new Timer(60000);
            timer.Elapsed += new ElapsedEventHandler(timer_Elapsed);
            timer.Enabled = true;
        }
 public BaseController()
 {
     Unit = new UnitOfWork();
 }
Beispiel #4
0
 void timer_Elapsed(object sender, ElapsedEventArgs e)
 {
     int? state =  new UnitOfWork().PokerBetSrvc.ChangeGameState();
     DoGeneralActions(state);
 }