public IActionResult Index() { KeyValueList <string, string> o = new KeyValueList <string, string>(); string msg = "Hello 35!"; o.Add("メッセージ", msg); o.Add("メッセージ 2", Dbg.HelloMsgTest); o.Add("起動時刻", Env.BootTime.ToLocalTime()._ToDtStr()); o.Add("Git Commit Id", Dbg.GetCurrentGitCommitId()); o.Add("Git Comment", Dbg.GetCurrentGitCommitInfo()?.Description ?? "-"); o.Add("Startup Arguments", GlobalDaemonStateManager.StartupArguments); o.Add("Process Id", Env.ProcessId.ToString()); o.Add("BuildConfigurationName", Env.BuildConfigurationName); o.Add("ExeOrDllName", Env.AppExecutableExeOrDllFileName); o.Add("RealExeName", Env.AppRealProcessExeFileName); o.Add("IsDotNetCore", Env.IsDotNetCore.ToString()); o.Add(".NET Version", Env.FrameworkInfoString); o.Add("DotNetHostProcessExeName", Env.DotNetHostProcessExeName); o.Add("AppRootDir", Env.AppRootDir); o.Add("GC Mode", Env.GcMode); // 環境変数 StringWriter w = new StringWriter(); var dic = Environment.GetEnvironmentVariables(); KeyValueList <string, string> tmp = new KeyValueList <string, string>(); foreach (System.Collections.DictionaryEntry?kv in dic) { if (kv?.Key is string key2) { if (kv?.Value is string value2) { tmp.Add(key2._NonNullTrim(), value2._NonNullTrim()); } } } tmp.OrderBy(x => x.Key)._DoForEach(x => w.WriteLine($"{x.Key} = {x.Value}")); o.Add("Environment Values", w.ToString()); //string a = Str.MakeCharArray('x', 100_000); // テスト /* for (int i = 0;; i++) * { * i._PostData(); * } */ return(View(o)); }