Skip to content

Commit b690bfe

Browse files
committed
Add about table back to aspnetapp
1 parent 180afac commit b690bfe

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed
Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,33 @@
1-
<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="aspnetapp.About" %>
1+
<%@ Import Namespace="System.Runtime.InteropServices" %>
2+
3+
<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="aspnetapp.About" %>
24

35
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
46
<main aria-labelledby="title">
57
<h2 id="title"><%: Title %>.</h2>
6-
<h3>Your application description page.</h3>
7-
<p>Use this area to provide additional information.</p>
8+
<div align="center">
9+
<table class="table table-striped table-hover">
10+
<tr>
11+
<td>.NET version</td>
12+
<td><%= RuntimeInformation.FrameworkDescription %></td>
13+
</tr>
14+
<tr>
15+
<td>Operating system</td>
16+
<td><%= RuntimeInformation.OSDescription %></td>
17+
</tr>
18+
<tr>
19+
<td>Processor architecture</td>
20+
<td><%= RuntimeInformation.OSArchitecture %></td>
21+
</tr>
22+
<tr>
23+
<td>CPU cores</td>
24+
<td><%= Environment.ProcessorCount %></td>
25+
</tr>
26+
<tr>
27+
<td>DOTNET_RUNNING_IN_CONTAINER</td>
28+
<td><%= (Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER") is null ? "false" : "true") %></td>
29+
</tr>
30+
</table>
31+
</div>
832
</main>
933
</asp:Content>

0 commit comments

Comments
 (0)