Client Hub Project
This commit is contained in:
17
ClientHub/Pages/_Host.cshtml.cs
Normal file
17
ClientHub/Pages/_Host.cshtml.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using OI.Metrology.ClientHub.Models;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace OI.Metrology.ClientHub.Pages;
|
||||
|
||||
public partial class Host : PageModel
|
||||
{
|
||||
|
||||
public AppSettings AppSettings { get; }
|
||||
public string? RequestId { get; private set; }
|
||||
|
||||
public Host(AppSettings appSettings) => AppSettings = appSettings;
|
||||
|
||||
public void OnGet() => RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
|
||||
|
||||
}
|
Reference in New Issue
Block a user