public override void Session_Start(object sender, EventArgs e) { if (HttpContext.Current != null && HttpContext.Current.Session != null) { // We are making an exception to using DI/service location of adapters here, since they have not yet // been registered with the Unity container. Meaning this needs to be changed manually if you change the // IThemeNamesProvider implementation. var themeNamesProvider = new Atomia.Store.AspNetMvc.Adapters.ThemeNamesProvider(); // Register "theme" key in session, which is required by legacy resource string handling in Atomia.Web.Base HttpContext.Current.Session["theme"] = themeNamesProvider.GetCurrentThemeName(); } }