static PublicDashboardController() { var dashboardInMemoryStorage = new DashboardInMemoryStorage(); dashboardInMemoryStorage.RegisterDashboard("publicId", XDocument.Load(HostingEnvironment.MapPath(@"~/App_Data/PublicDashboard.xml"))); dashboardConfigurator = new DashboardConfigurator(); dashboardConfigurator.SetDashboardStorage(dashboardInMemoryStorage); }
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); }