Skip to content

Commit

Permalink
Removed PingHelper.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
nenad0707 committed Jun 7, 2024
1 parent 67ccd31 commit 820d0d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 48 deletions.
14 changes: 1 addition & 13 deletions TaskTackler/App.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
@using TaskTackler.Helpers
@inject IHttpClientFactory HttpClientFactory
<CascadingAuthenticationState>
<CascadingAuthenticationState>
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
Expand All @@ -14,13 +12,3 @@
</NotFound>
</Router>
</CascadingAuthenticationState>

@code {
protected override void OnInitialized()
{
var httpClient = HttpClientFactory.CreateClient("api");

// Start the pinging process on a background thread
_ = Task.Run(() => PingHelper.PingApiWithRetry(httpClient));
}
}
35 changes: 0 additions & 35 deletions TaskTackler/Helpers/PingHelper.cs

This file was deleted.

0 comments on commit 820d0d9

Please sign in to comment.