Skip to content
Open
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

This file was deleted.

37 changes: 0 additions & 37 deletions 10.0/BlazorWebAppEntra/BlazorWebAppEntra.sln

This file was deleted.

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions 10.0/BlazorWebAppEntra/README.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,15 @@

protected override void OnInitialized()
{
currentUrl = Navigation.ToBaseRelativePath(Navigation.Uri);
currentUrl = Navigation.Uri;
Navigation.LocationChanged += OnLocationChanged;
}

private void OnLocationChanged(object? sender, LocationChangedEventArgs e)
{
currentUrl = Navigation.ToBaseRelativePath(e.Location);
currentUrl = Navigation.Uri;
StateHasChanged();
}

public void Dispose()
{
Navigation.LocationChanged -= OnLocationChanged;
}
public void Dispose() => Navigation.LocationChanged -= OnLocationChanged;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
.nav-item {
font-size: 0.9rem;
padding-bottom: 0.5rem;
text-align: left;
}

.nav-item .nav-link {
Expand All @@ -29,7 +30,7 @@
height: 3rem;
display: flex;
align-items: center;
line-height: 3rem;
text-align: left;
width: 100%;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/user-claims"
@page "/user-claims"
@using System.Security.Claims
@using Microsoft.AspNetCore.Authorization
@attribute [Authorize]
Expand All @@ -18,7 +18,7 @@
}

@code {
private IEnumerable<Claim> claims = Enumerable.Empty<Claim>();
private IEnumerable<Claim> claims = [];

[CascadingParameter]
private Task<AuthenticationState>? AuthState { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<p>This component demonstrates showing data.</p>

@if (forecasts == null)
@if (Forecasts == null)
{
<p><em>Loading...</em></p>
}
Expand All @@ -20,13 +20,13 @@ else
<thead>
<tr>
<th>Date</th>
<th>Temp. (C)</th>
<th>Temp. (F)</th>
<th aria-label="Temperature in Celsius">Temp. (C)</th>
<th aria-label="Temperature in Fahrenheit">Temp. (F)</th>
<th>Summary</th>
</tr>
</thead>
<tbody>
@foreach (var forecast in forecasts)
@foreach (var forecast in Forecasts)
{
<tr>
<td>@forecast.Date.ToShortDateString()</td>
Expand All @@ -40,10 +40,11 @@ else
}

@code {
private IEnumerable<WeatherForecast>? forecasts;
[PersistentState]
public IEnumerable<WeatherForecast>? Forecasts { get; set; }

protected override async Task OnInitializedAsync()
{
forecasts = await WeatherForecaster.GetWeatherForecastAsync();
Forecasts ??= await WeatherForecaster.GetWeatherForecastAsync();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

namespace BlazorWebAppEntra.Client.Weather;

public interface IWeatherForecaster
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace BlazorWebAppEntra.Client.Weather;

public sealed class WeatherForecast
public sealed class WeatherForecast(DateOnly date, int temperatureC, string summary)
{
public DateOnly Date { get; set; }
public int TemperatureC { get; set; }
public string? Summary { get; set; }
public DateOnly Date { get; set; } = date;
public int TemperatureC { get; set; } = temperatureC;
public string? Summary { get; set; } = summary;
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
}
84 changes: 14 additions & 70 deletions 10.0/BlazorWebAppEntraBff/BlazorWebAppEntra.sln
Original file line number Diff line number Diff line change
@@ -1,93 +1,37 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 18
VisualStudioVersion = 18.0.11201.2 d18.0
MinimumVisualStudioVersion = 16.0.0.0
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorWebAppEntra", "BlazorWebAppEntra\BlazorWebAppEntra.csproj", "{7588C04C-A91C-46AA-A161-6441DDA6D1C8}"
# Visual Studio Version 17
VisualStudioVersion = 17.12.35323.107
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorWebAppEntra", "BlazorWebAppEntra\BlazorWebAppEntra.csproj", "{ABE4C0A7-8FF0-4FE1-97FD-ED4692324101}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorWebAppEntra.Client", "BlazorWebAppEntra.Client\BlazorWebAppEntra.Client.csproj", "{DCAFB651-B1C8-48F1-AC85-0221F7378DDA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aspire.AppHost", "Aspire\Aspire.AppHost\Aspire.AppHost.csproj", "{2F6AB681-C3FD-45F3-95C1-0FA9889CDEEA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aspire.ServiceDefaults", "Aspire\Aspire.ServiceDefaults\Aspire.ServiceDefaults.csproj", "{13E08A9B-6736-4342-BFE7-A951BA3F36DC}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorWebAppEntra.Client", "BlazorWebAppEntra.Client\BlazorWebAppEntra.Client.csproj", "{0E2BE51B-7C55-4CBB-B3E8-7A8EF304C8E2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalApiJwt", "MinimalApiJwt\MinimalApiJwt.csproj", "{02B2EF75-0ED3-7B54-3753-8E8DD6236369}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7588C04C-A91C-46AA-A161-6441DDA6D1C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7588C04C-A91C-46AA-A161-6441DDA6D1C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7588C04C-A91C-46AA-A161-6441DDA6D1C8}.Debug|x64.ActiveCfg = Debug|Any CPU
{7588C04C-A91C-46AA-A161-6441DDA6D1C8}.Debug|x64.Build.0 = Debug|Any CPU
{7588C04C-A91C-46AA-A161-6441DDA6D1C8}.Debug|x86.ActiveCfg = Debug|Any CPU
{7588C04C-A91C-46AA-A161-6441DDA6D1C8}.Debug|x86.Build.0 = Debug|Any CPU
{7588C04C-A91C-46AA-A161-6441DDA6D1C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7588C04C-A91C-46AA-A161-6441DDA6D1C8}.Release|Any CPU.Build.0 = Release|Any CPU
{7588C04C-A91C-46AA-A161-6441DDA6D1C8}.Release|x64.ActiveCfg = Release|Any CPU
{7588C04C-A91C-46AA-A161-6441DDA6D1C8}.Release|x64.Build.0 = Release|Any CPU
{7588C04C-A91C-46AA-A161-6441DDA6D1C8}.Release|x86.ActiveCfg = Release|Any CPU
{7588C04C-A91C-46AA-A161-6441DDA6D1C8}.Release|x86.Build.0 = Release|Any CPU
{DCAFB651-B1C8-48F1-AC85-0221F7378DDA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DCAFB651-B1C8-48F1-AC85-0221F7378DDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DCAFB651-B1C8-48F1-AC85-0221F7378DDA}.Debug|x64.ActiveCfg = Debug|Any CPU
{DCAFB651-B1C8-48F1-AC85-0221F7378DDA}.Debug|x64.Build.0 = Debug|Any CPU
{DCAFB651-B1C8-48F1-AC85-0221F7378DDA}.Debug|x86.ActiveCfg = Debug|Any CPU
{DCAFB651-B1C8-48F1-AC85-0221F7378DDA}.Debug|x86.Build.0 = Debug|Any CPU
{DCAFB651-B1C8-48F1-AC85-0221F7378DDA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DCAFB651-B1C8-48F1-AC85-0221F7378DDA}.Release|Any CPU.Build.0 = Release|Any CPU
{DCAFB651-B1C8-48F1-AC85-0221F7378DDA}.Release|x64.ActiveCfg = Release|Any CPU
{DCAFB651-B1C8-48F1-AC85-0221F7378DDA}.Release|x64.Build.0 = Release|Any CPU
{DCAFB651-B1C8-48F1-AC85-0221F7378DDA}.Release|x86.ActiveCfg = Release|Any CPU
{DCAFB651-B1C8-48F1-AC85-0221F7378DDA}.Release|x86.Build.0 = Release|Any CPU
{2F6AB681-C3FD-45F3-95C1-0FA9889CDEEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2F6AB681-C3FD-45F3-95C1-0FA9889CDEEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2F6AB681-C3FD-45F3-95C1-0FA9889CDEEA}.Debug|x64.ActiveCfg = Debug|Any CPU
{2F6AB681-C3FD-45F3-95C1-0FA9889CDEEA}.Debug|x64.Build.0 = Debug|Any CPU
{2F6AB681-C3FD-45F3-95C1-0FA9889CDEEA}.Debug|x86.ActiveCfg = Debug|Any CPU
{2F6AB681-C3FD-45F3-95C1-0FA9889CDEEA}.Debug|x86.Build.0 = Debug|Any CPU
{2F6AB681-C3FD-45F3-95C1-0FA9889CDEEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2F6AB681-C3FD-45F3-95C1-0FA9889CDEEA}.Release|Any CPU.Build.0 = Release|Any CPU
{2F6AB681-C3FD-45F3-95C1-0FA9889CDEEA}.Release|x64.ActiveCfg = Release|Any CPU
{2F6AB681-C3FD-45F3-95C1-0FA9889CDEEA}.Release|x64.Build.0 = Release|Any CPU
{2F6AB681-C3FD-45F3-95C1-0FA9889CDEEA}.Release|x86.ActiveCfg = Release|Any CPU
{2F6AB681-C3FD-45F3-95C1-0FA9889CDEEA}.Release|x86.Build.0 = Release|Any CPU
{13E08A9B-6736-4342-BFE7-A951BA3F36DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{13E08A9B-6736-4342-BFE7-A951BA3F36DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{13E08A9B-6736-4342-BFE7-A951BA3F36DC}.Debug|x64.ActiveCfg = Debug|Any CPU
{13E08A9B-6736-4342-BFE7-A951BA3F36DC}.Debug|x64.Build.0 = Debug|Any CPU
{13E08A9B-6736-4342-BFE7-A951BA3F36DC}.Debug|x86.ActiveCfg = Debug|Any CPU
{13E08A9B-6736-4342-BFE7-A951BA3F36DC}.Debug|x86.Build.0 = Debug|Any CPU
{13E08A9B-6736-4342-BFE7-A951BA3F36DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{13E08A9B-6736-4342-BFE7-A951BA3F36DC}.Release|Any CPU.Build.0 = Release|Any CPU
{13E08A9B-6736-4342-BFE7-A951BA3F36DC}.Release|x64.ActiveCfg = Release|Any CPU
{13E08A9B-6736-4342-BFE7-A951BA3F36DC}.Release|x64.Build.0 = Release|Any CPU
{13E08A9B-6736-4342-BFE7-A951BA3F36DC}.Release|x86.ActiveCfg = Release|Any CPU
{13E08A9B-6736-4342-BFE7-A951BA3F36DC}.Release|x86.Build.0 = Release|Any CPU
{ABE4C0A7-8FF0-4FE1-97FD-ED4692324101}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ABE4C0A7-8FF0-4FE1-97FD-ED4692324101}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ABE4C0A7-8FF0-4FE1-97FD-ED4692324101}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ABE4C0A7-8FF0-4FE1-97FD-ED4692324101}.Release|Any CPU.Build.0 = Release|Any CPU
{0E2BE51B-7C55-4CBB-B3E8-7A8EF304C8E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0E2BE51B-7C55-4CBB-B3E8-7A8EF304C8E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0E2BE51B-7C55-4CBB-B3E8-7A8EF304C8E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0E2BE51B-7C55-4CBB-B3E8-7A8EF304C8E2}.Release|Any CPU.Build.0 = Release|Any CPU
{02B2EF75-0ED3-7B54-3753-8E8DD6236369}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{02B2EF75-0ED3-7B54-3753-8E8DD6236369}.Debug|Any CPU.Build.0 = Debug|Any CPU
{02B2EF75-0ED3-7B54-3753-8E8DD6236369}.Debug|x64.ActiveCfg = Debug|Any CPU
{02B2EF75-0ED3-7B54-3753-8E8DD6236369}.Debug|x64.Build.0 = Debug|Any CPU
{02B2EF75-0ED3-7B54-3753-8E8DD6236369}.Debug|x86.ActiveCfg = Debug|Any CPU
{02B2EF75-0ED3-7B54-3753-8E8DD6236369}.Debug|x86.Build.0 = Debug|Any CPU
{02B2EF75-0ED3-7B54-3753-8E8DD6236369}.Release|Any CPU.ActiveCfg = Release|Any CPU
{02B2EF75-0ED3-7B54-3753-8E8DD6236369}.Release|Any CPU.Build.0 = Release|Any CPU
{02B2EF75-0ED3-7B54-3753-8E8DD6236369}.Release|x64.ActiveCfg = Release|Any CPU
{02B2EF75-0ED3-7B54-3753-8E8DD6236369}.Release|x64.Build.0 = Release|Any CPU
{02B2EF75-0ED3-7B54-3753-8E8DD6236369}.Release|x86.ActiveCfg = Release|Any CPU
{02B2EF75-0ED3-7B54-3753-8E8DD6236369}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A7BB58BC-6E37-4456-BCDB-80A7CE694BAD}
SolutionGuid = {74FE9FED-A3AA-4190-B610-C9509637F38E}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Aspire\Aspire.ServiceDefaults\Aspire.ServiceDefaults.csproj" />
<ProjectReference Include="..\BlazorWebAppEntra.Client\BlazorWebAppEntra.Client.csproj" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="10.0.0" />
<PackageReference Include="Azure.Extensions.AspNetCore.DataProtection.Blobs" Version="1.5.1" />
<PackageReference Include="Azure.Extensions.AspNetCore.DataProtection.Keys" Version="1.6.1" />
<PackageReference Include="Microsoft.Extensions.Azure" Version="1.13.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="10.0.0" />
<PackageReference Include="Microsoft.Identity.Web" Version="4.0.1" />
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery.Yarp" Version="9.5.2" />
<PackageReference Include="Microsoft.Identity.Web.DownstreamApi" Version="4.0.1" />

</ItemGroup>

</Project>
Loading