コード例 #1
0
ファイル: SegmentLang.cs プロジェクト: akrisiun/git-dot-aspx
 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;
 }
コード例 #2
0
        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;
        }