Skip to content

Commit

Permalink
fix: remove artificial delay from demo and remove unneeded config
Browse files Browse the repository at this point in the history
  • Loading branch information
davhdavh committed Nov 27, 2024
1 parent 5ac8b6a commit 0e1fc61
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ else

protected override async Task OnInitializedAsync()
{
// Simulate asynchronous loading to demonstrate streaming rendering
await Task.Delay(500);

forecasts = (await forecaster.GetWeatherForecastAsync()).ToArray();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ else

protected override async Task OnInitializedAsync()
{
// Simulate asynchronous loading to demonstrate streaming rendering
await Task.Delay(500);

forecasts = (await forecaster.GetWeatherForecastAsync()).ToArray();
}

Expand Down
5 changes: 0 additions & 5 deletions demos/BlazorWebApp/BlazorWebApp/Program.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using BlazorWebApp.Components;
using BlazorWebApp.Components.Account;
using BlazorWebApp.Data;
using BlazorWebApp.DemoUsage;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;

var builder = WebApplication.CreateBuilder(args);

Expand Down
8 changes: 3 additions & 5 deletions demos/BlazorWebApp/BlazorWebApp/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,19 @@
},
"AllowedHosts": "*",
"CatglobeOidc": {
"Authority": "https://localhost:5001/",
"Authority": "https://testme.catglobe.com/",
"ClientId": "13BAC6C1-8DEC-46E2-B378-90E0325F8132",
"ClientSecret": "secret",
"PostLogoutRedirectUri": "https://localhost:7176/authentication/logout-callback",
"RedirectUri": "https://localhost:7176/authentication/login-callback",
"ResponseType": "code",
"DefaultScopes": [ "email", "offline_access", "roles" ],
"SaveTokens": true
},
"CatglobeApi": {
"FolderResourceId": 19705454,
"Site": "https://localhost:5001/"
"Site": "https://testme.catglobe.com/"
},
"CatglobeDeployment": {
"Authority": "https://localhost:5001/",
"Authority": "https://testme.catglobe.com/",
"ClientId": "DA431000-F318-4C55-9458-96A5D659866F",
"ClientSecret": "verysecret",
"FolderResourceId": 19705454,
Expand Down

0 comments on commit 0e1fc61

Please sign in to comment.