SetRouteTable() public static method

public static SetRouteTable ( ) : void
return void
Exemplo n.º 1
0
 [Assert_Admin]                      // impersonate an admin to load the database
 public void Application_Start()
 {
     "[TM_StartUp] Application Start".info();
     TmXmlDatabase       = new  TM_Xml_Database(true);                               // Create FileSystem Based database
     TrackingApplication = new Tracking_Application(TmXmlDatabase.Path_XmlDatabase); // Enabled Application Tracking
     TM_REST.SetRouteTable();                                                        // Set REST routes
     TrackingApplication.saveLog();
 }
Exemplo n.º 2
0
        [Assert_Admin]                      // impersonate an admin to load the database
        public void Application_Start()
        {
            //O2_Utils.showLogViewer_if_LocalHost();

            TmXmlDatabase       = new  TM_Xml_Database(true);                               // Create FileSystem Based database
            TrackingApplication = new Tracking_Application(TmXmlDatabase.Path_XmlDatabase); // Enabled Application Tracking
            TM_REST.SetRouteTable();                                                        // Set REST routes
            TrackingApplication.saveLog();
        }
Exemplo n.º 3
0
        [Assert_Admin]                      // impersonate an admin to load the database
        public void Application_Start()
        {
            //O2_Utils.showLogViewer_if_LocalHost();

            TmXmlDatabase       = new  TM_Xml_Database(true);                                       // Create FileSystem Based database
            TrackingApplication = new Tracking_Application(TmXmlDatabase.Path_XmlDatabase);         // Enabled Application Tracking

            TM_REST.SetRouteTable();                                                                // Set REST routes
            MVC4.MapDefaultRoutes();                                                                // Add support for ASP.NET MVC Controllers on the TM_Website
            TrackingApplication.saveLog();
        }
Exemplo n.º 4
0
        public void Application_Start()
        {
            UserGroup.Admin.assert();                                   // impersonate an admin to load the database

            "[TM_StartUp] Application Start".info();

            TmFileStorage = new TM_FileStorage();                       // this will trigger the load of all TM_Xml_Database data


            TmFileStorage.UserData.createDefaultAdminUser();                                  // ensures that there is an valid admin

            TrackingApplication = new Tracking_Application(TmFileStorage.path_XmlDatabase()); // Enabled Application Tracking

            TM_REST.SetRouteTable();                                                          // Set REST routes
            MVC5.MapDefaultRoutes();                                                          // Map MVC 5 routes

            TrackingApplication.saveLog();                                                    // save log

            UserGroup.None.assert();                                                          // revert admin user impersonation
        }