public IActionResult Index() { var viewModel = new HoeViewModel { EnvSql = $"LEXICON_SQL_CONNECTION={Environment.GetEnvironmentVariable("LEXICON_SQL_CONNECTION")}", ConfSql = $"ConnMsSQL={_configuration.GetConnectionString("ConnMsSQL")}", HostIp = $"HostIp={_localIPv4.GetLocalIPv4(NetworkInterfaceType.Ethernet)}", ActualConnectionString = $"ActualConnectionString={Environment.GetEnvironmentVariable("ActualConnectionString")}", }; return(View(viewModel)); }
public IActionResult Index() { var viewModel = new HoeViewModel { EnvSql = $"LEXICON_SQL_CONNECTION={Environment.GetEnvironmentVariable("LEXICON_SQL_CONNECTION")}", EnvSubstituteLocalIp = $"SUBSTITUTE_LOCAL_IP={Environment.GetEnvironmentVariable("SUBSTITUTE_LOCAL_IP")}", EnvSubstitutePublicIp = $"SUBSTITUTE_PUBLIC_IP={Environment.GetEnvironmentVariable("SUBSTITUTE_PUBLIC_IP")}", ConfSql = $"ConnMsSQL={_configuration.GetConnectionString("ConnMsSQL")}", HostIp = $"HostIp={_localIPv4.GetLocalIPv4(NetworkInterfaceType.Ethernet)}", PublicIp = $"PublicIp={_publicIP.GetPublicIP()}", ActualConnectionString = $"ActualConnectionString={Environment.GetEnvironmentVariable("ActualConnectionString")}", }; return(View(viewModel)); }