Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public async Task<BlazorWebWasmRequestLog[]> GetRequestLogsAsync()
{
var response = await _httpClient.GetAsync("request-logs");
response.EnsureSuccessStatusCode();
var logs = await response.Content.ReadFromJsonAsync<BlazorWebWasmRequestLog[]>() ?? Array.Empty<BlazorWebWasmRequestLog>();
var logs = await response.Content.ReadFromJsonAsync<BlazorWebWasmRequestLog[]>() ?? [];
return logs;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
var app = builder.Build();

var requestLogs = new List<BlazorWebWasmRequestLog>();
var requestLogsLock = new object();
var requestLogsLock = new Lock();

app.Use(async (context, next) =>
{
Expand Down