File tree Expand file tree Collapse file tree 1 file changed +27
-3
lines changed
samples/aspnetapp/aspnetapp Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments