static PublicDashboardController()
        {
            var dashboardInMemoryStorage = new DashboardInMemoryStorage();

            dashboardInMemoryStorage.RegisterDashboard("publicId", XDocument.Load(HostingEnvironment.MapPath(@"~/App_Data/PublicDashboard.xml")));

            dashboardConfigurator = new DashboardConfigurator();
            dashboardConfigurator.SetDashboardStorage(dashboardInMemoryStorage);
        }
Example #2
0
        static DashboardWithAntiForgegyTokenController()
        {
            // sample data
            var dashboardInMemoryStorage = new DashboardInMemoryStorage();

            dashboardInMemoryStorage.RegisterDashboard("editId", XDocument.Load(HostingEnvironment.MapPath(@"~/App_Data/PublicDashboard.xml")));

            dashboardConfigurator = new DashboardConfigurator();
            dashboardConfigurator.SetDashboardStorage(dashboardInMemoryStorage);
        }