static SegmentLang() { var firmID = ConfigurationManager.AppSettings.Get("dir.firmid") ?? "SA"; var lang = ConfigurationManager.AppSettings.Get("dir.lang") ?? "LT"; Instance = new SegmentLang() { FirmID = firmID, Lang = lang }; Segment.Instance = Instance; Instance.afterFirst = false; Instance.PhysicalPath = HostingEnvironment.ApplicationPhysicalPath; }