Aggiornamento a .net9 e aggiunto MudBlazor
This commit is contained in:
@@ -24,13 +24,12 @@
|
||||
and restarting the app.
|
||||
</p>
|
||||
|
||||
@code{
|
||||
[CascadingParameter]
|
||||
private HttpContext? HttpContext { get; set; }
|
||||
|
||||
@code {
|
||||
private string? RequestId { get; set; }
|
||||
private bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
|
||||
protected override void OnInitialized() =>
|
||||
RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier;
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
RequestId = Guid.NewGuid().ToString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user