<Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>net7.0</TargetFramework> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> <UserSecretsId>77a5d0ea-3768-4f64-b19b-b2a52cbe01c7</UserSecretsId> <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.17.0" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.2" /> <PackageReference Include="Oracle.EntityFrameworkCore" Version="6.21.61" /> <PackageReference Include="Oracle.ManagedDataAccess.Core" Version="3.21.80" /> <PackageReference Include="RestSharp" Version="108.0.3" /> </ItemGroup></Project>
@using System.Threading;@implements IDisposable@page "/"<PageTitle>Index</PageTitle><h1>@timeString</h1>@code { string timeString = DateTime.Now.ToLongTimeString(); Timer timer; protected override void OnInitialized() { timer = new Timer(UpdatePage, null, 0, 1); } void UpdatePage(object _) { timeString = DateTime.Now.ToLongTimeString(); InvokeAsync(StateHasChanged); } public void Dispose() { timer.Dispose(); } }