Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge to Live #33984

Merged
merged 7 commits into from
Nov 4, 2024
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
7 changes: 6 additions & 1 deletion .openpublishing.redirection.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"redirections": [
{
"source_path": "aspnetcore/web-api/microsoft.dotnet-openapi.md",
Expand All @@ -10,6 +10,11 @@
"redirect_url": "/aspnet/core/fundamentals/openapi/aspnetcore-openapi",
"redirect_document_id": false
},
{
"source_path": "aspnetcore/fundamentals/openapi/buildtime-openapi.md",
"redirect_url": "/aspnet/core/fundamentals/openapi/aspnetcore-openapi#generate-openapi-documents-at- build-time",
"redirect_document_id": false
},
{
"source_path": "aspnetcore/security/authentication/samples.md",
"redirect_url": "/aspnet/core/security/authorization/introduction",
Expand Down
8 changes: 4 additions & 4 deletions aspnetcore/blazor/components/quickgrid.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ The <xref:Microsoft.AspNetCore.Components.QuickGrid.GridItemsProvider%601> conve
```razor
@page "/food-recalls"
@inject HttpClient Http
@inject NavigationManager NavManager
@inject NavigationManager Navigation

<PageTitle>Food Recalls</PageTitle>

Expand All @@ -332,14 +332,14 @@ The <xref:Microsoft.AspNetCore.Components.QuickGrid.GridItemsProvider%601> conve
<p>Total: <strong>@numResults results found</strong></p>

@code {
GridItemsProvider<FoodRecall>? foodRecallProvider;
int numResults;
private GridItemsProvider<FoodRecall>? foodRecallProvider;
private int numResults;

protected override async Task OnInitializedAsync()
{
foodRecallProvider = async req =>
{
var url = NavManager.GetUriWithQueryParameters(
var url = Navigation.GetUriWithQueryParameters(
"https://api.fda.gov/food/enforcement.json",
new Dictionary<string, object?>
{
Expand Down
8 changes: 4 additions & 4 deletions aspnetcore/blazor/components/render-modes.md
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ The `Shared` folder maintains the `AccountLayout` layout component. The componen
```razor
@inherits LayoutComponentBase
@layout BlazorSample.Components.Layout.MainLayout
@inject NavigationManager NavigationManager
@inject NavigationManager Navigation

@if (HttpContext is null)
{
Expand All @@ -707,7 +707,7 @@ else
{
if (HttpContext is null)
{
NavigationManager.Refresh(forceReload: true);
Navigation.Refresh(forceReload: true);
}
}
}
Expand Down Expand Up @@ -756,7 +756,7 @@ The app has a custom layout that can be applied to components around the app. Us
```razor
@inherits LayoutComponentBase
@layout MainLayout
@inject NavigationManager NavigationManager
@inject NavigationManager Navigation

@if (HttpContext is null)
{
Expand All @@ -775,7 +775,7 @@ else
{
if (HttpContext is null)
{
NavigationManager.Refresh(forceReload: true);
Navigation.Refresh(forceReload: true);
}
}
}
Expand Down
18 changes: 1 addition & 17 deletions aspnetcore/blazor/fundamentals/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,22 +178,6 @@ Documentation sample apps are available for inspection and download:

Locate a sample app by first selecting the version folder that matches the version of .NET that you're working with.

:::moniker range=">= aspnetcore-8.0"

Samples apps in the repository:

* Blazor Web App
* Blazor WebAssembly
* Blazor Web App with EF Core (<xref:blazor/blazor-ef-core>)
* Blazor Web App with SignalR (<xref:blazor/tutorials/signalr-blazor>)
* Two Blazor Web Apps and a Blazor WebAssembly app for calling web (server) APIs (<xref:blazor/call-web-api>)
* Blazor Web App with OIDC (BFF and non-BFF patterns) (<xref:blazor/security/blazor-web-app-oidc>)
* Blazor WebAssembly scopes-enabled logging (<xref:blazor/fundamentals/logging#client-side-log-scopes>)
* Blazor WebAssembly with ASP.NET Core Identity (<xref:blazor/security/webassembly/standalone-with-identity>)
* .NET MAUI Blazor Hybrid app with a Blazor Web App and a shared UI provided by a Razor class library (RCL) (<xref:blazor/hybrid/tutorials/maui-blazor-web-app>)

:::moniker-end

:::moniker range="< aspnetcore-8.0"

The sample repo contains two types of samples:
Expand All @@ -206,7 +190,7 @@ The sample repo contains two types of samples:

:::moniker-end

For more information, see the [Blazor samples GitHub repository README.md file](https://github.com/dotnet/blazor-samples).
For more information and a list of the samples in the repository, see the [Blazor samples GitHub repository README.md file](https://github.com/dotnet/blazor-samples).

The ASP.NET Core repository's Basic Test App is also a helpful set of samples for various Blazor scenarios:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ The following services are registered.
.AddEntityFrameworkStores<ApplicationDbContext>();
```

[!INCLUDE[](~/blazor/security/includes/secure-authentication-flows.md)]

* Identity Server with an additional <xref:Microsoft.Extensions.DependencyInjection.IdentityServerBuilderConfigurationExtensions.AddApiAuthorization%2A> helper method that sets up default ASP.NET Core conventions on top of Identity Server:

```csharp
Expand Down
Loading
Loading