Skip to content

Commit 15eddda

Browse files
authored
Change placeholder (#28435)
1 parent 993d573 commit 15eddda

File tree

5 files changed

+75
-75
lines changed

5 files changed

+75
-75
lines changed

aspnetcore/blazor/components/prerendering-and-integration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ After [configuring the solution](#solution-configuration), including the [additi
299299
* <xref:Microsoft.AspNetCore.Mvc.Rendering.RenderMode.WebAssembly>
300300
* <xref:Microsoft.AspNetCore.Mvc.Rendering.RenderMode.WebAssemblyPrerendered>
301301

302-
In the following Razor Pages example, the `Counter` component is rendered in a page. To make the component interactive, the Blazor WebAssembly script is included in the page's [render section](xref:mvc/views/layout#sections). To avoid using the full namespace for the `Counter` component with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) (`{APP ASSEMBLY}.Pages.Counter`), add an [`@using`](xref:mvc/views/razor#using) directive for the client project's `Pages` namespace. In the following example, the **:::no-loc text="Client":::** project's namespace is `BlazorHosted.Client`.
302+
In the following Razor Pages example, the `Counter` component is rendered in a page. To make the component interactive, the Blazor WebAssembly script is included in the page's [render section](xref:mvc/views/layout#sections). To avoid using the full namespace for the `Counter` component with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) (`{ASSEMBLY NAME}.Pages.Counter`), add an [`@using`](xref:mvc/views/razor#using) directive for the client project's `Pages` namespace. In the following example, the **:::no-loc text="Client":::** project's namespace is `BlazorHosted.Client`.
303303

304304
In the **:::no-loc text="Server":::** project, `Pages/RazorPagesCounter1.cshtml`:
305305

@@ -1221,7 +1221,7 @@ After [configuring the solution](#solution-configuration), including the [additi
12211221
* <xref:Microsoft.AspNetCore.Mvc.Rendering.RenderMode.WebAssembly>
12221222
* <xref:Microsoft.AspNetCore.Mvc.Rendering.RenderMode.WebAssemblyPrerendered>
12231223

1224-
In the following Razor Pages example, the `Counter` component is rendered in a page. To make the component interactive, the Blazor WebAssembly script is included in the page's [render section](xref:mvc/views/layout#sections). To avoid using the full namespace for the `Counter` component with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) (`{APP ASSEMBLY}.Pages.Counter`), add an [`@using`](xref:mvc/views/razor#using) directive for the client project's `Pages` namespace. In the following example, the **:::no-loc text="Client":::** project's namespace is `BlazorHosted.Client`.
1224+
In the following Razor Pages example, the `Counter` component is rendered in a page. To make the component interactive, the Blazor WebAssembly script is included in the page's [render section](xref:mvc/views/layout#sections). To avoid using the full namespace for the `Counter` component with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) (`{ASSEMBLY NAME}.Pages.Counter`), add an [`@using`](xref:mvc/views/razor#using) directive for the client project's `Pages` namespace. In the following example, the **:::no-loc text="Client":::** project's namespace is `BlazorHosted.Client`.
12251225

12261226
In the **:::no-loc text="Server":::** project, `Pages/RazorPagesCounter1.cshtml`:
12271227

@@ -2035,7 +2035,7 @@ After [configuring the solution](#solution-configuration), including the [additi
20352035
* <xref:Microsoft.AspNetCore.Mvc.Rendering.RenderMode.WebAssembly>
20362036
* <xref:Microsoft.AspNetCore.Mvc.Rendering.RenderMode.WebAssemblyPrerendered>
20372037

2038-
In the following Razor Pages example, the `Counter` component is rendered in a page. To make the component interactive, the Blazor WebAssembly script is included in the page's [render section](xref:mvc/views/layout#sections). To avoid using the full namespace for the `Counter` component with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) (`{APP ASSEMBLY}.Pages.Counter`), add an [`@using`](xref:mvc/views/razor#using) directive for the client project's `Pages` namespace. In the following example, the **:::no-loc text="Client":::** project's namespace is `BlazorHosted.Client`.
2038+
In the following Razor Pages example, the `Counter` component is rendered in a page. To make the component interactive, the Blazor WebAssembly script is included in the page's [render section](xref:mvc/views/layout#sections). To avoid using the full namespace for the `Counter` component with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper) (`{ASSEMBLY NAME}.Pages.Counter`), add an [`@using`](xref:mvc/views/razor#using) directive for the client project's `Pages` namespace. In the following example, the **:::no-loc text="Client":::** project's namespace is `BlazorHosted.Client`.
20392039

20402040
In the **:::no-loc text="Server":::** project, `Pages/RazorPagesCounter1.cshtml`:
20412041

aspnetcore/blazor/security/webassembly/additional-scenarios.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ using System.Net.Http;
347347
using System.Net.Http.Json;
348348
using System.Threading.Tasks;
349349
using Microsoft.AspNetCore.Components.WebAssembly.Authentication;
350-
using static {APP ASSEMBLY}.Data;
350+
using static {ASSEMBLY NAME}.Data;
351351

352352
public class WeatherForecastClient
353353
{
@@ -377,7 +377,7 @@ public class WeatherForecastClient
377377
}
378378
```
379379

380-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `using static BlazorSample.Data;`).
380+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `using static BlazorSample.Data;`).
381381

382382
In `Program.cs`:
383383

@@ -1146,7 +1146,7 @@ using System.Net.Http;
11461146
using Microsoft.AspNetCore.Components.WebAssembly.Authentication;
11471147
using Grpc.Net.Client;
11481148
using Grpc.Net.Client.Web;
1149-
using {APP ASSEMBLY}.Shared;
1149+
using {ASSEMBLY NAME}.Shared;
11501150

11511151
...
11521152

@@ -1164,14 +1164,14 @@ builder.Services.AddScoped(sp =>
11641164
});
11651165
```
11661166

1167-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `BlazorSample`). Place the `.proto` file in the `Shared` project of the hosted Blazor solution.
1167+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `BlazorSample`). Place the `.proto` file in the `Shared` project of the hosted Blazor solution.
11681168

11691169
A component in the client app can make gRPC calls using the gRPC client (`Pages/Grpc.razor`):
11701170

11711171
```razor
11721172
@page "/grpc"
11731173
@using Microsoft.AspNetCore.Authorization
1174-
@using {APP ASSEMBLY}.Shared
1174+
@using {ASSEMBLY NAME}.Shared
11751175
@attribute [Authorize]
11761176
@inject Greeter.GreeterClient GreeterClient
11771177

@@ -1206,7 +1206,7 @@ Server response: <strong>@serverResponse</strong>
12061206
}
12071207
```
12081208

1209-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `BlazorSample`). To use the `Status.DebugException` property, use [`Grpc.Net.Client`](https://www.nuget.org/packages/Grpc.Net.Client) version 2.30.0 or later.
1209+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `BlazorSample`). To use the `Status.DebugException` property, use [`Grpc.Net.Client`](https://www.nuget.org/packages/Grpc.Net.Client) version 2.30.0 or later.
12101210
12111211
For more information, see <xref:grpc/grpcweb>.
12121212

@@ -1576,7 +1576,7 @@ using System.Net.Http;
15761576
using System.Net.Http.Json;
15771577
using System.Threading.Tasks;
15781578
using Microsoft.AspNetCore.Components.WebAssembly.Authentication;
1579-
using static {APP ASSEMBLY}.Data;
1579+
using static {ASSEMBLY NAME}.Data;
15801580

15811581
public class WeatherForecastClient
15821582
{
@@ -1606,7 +1606,7 @@ public class WeatherForecastClient
16061606
}
16071607
```
16081608

1609-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `using static BlazorSample.Data;`).
1609+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `using static BlazorSample.Data;`).
16101610

16111611
In `Program.cs`:
16121612

@@ -2377,7 +2377,7 @@ using System.Net.Http;
23772377
using Microsoft.AspNetCore.Components.WebAssembly.Authentication;
23782378
using Grpc.Net.Client;
23792379
using Grpc.Net.Client.Web;
2380-
using {APP ASSEMBLY}.Shared;
2380+
using {ASSEMBLY NAME}.Shared;
23812381

23822382
...
23832383

@@ -2395,14 +2395,14 @@ builder.Services.AddScoped(sp =>
23952395
});
23962396
```
23972397

2398-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `BlazorSample`). Place the `.proto` file in the `Shared` project of the hosted Blazor solution.
2398+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `BlazorSample`). Place the `.proto` file in the `Shared` project of the hosted Blazor solution.
23992399

24002400
A component in the client app can make gRPC calls using the gRPC client (`Pages/Grpc.razor`):
24012401

24022402
```razor
24032403
@page "/grpc"
24042404
@using Microsoft.AspNetCore.Authorization
2405-
@using {APP ASSEMBLY}.Shared
2405+
@using {ASSEMBLY NAME}.Shared
24062406
@attribute [Authorize]
24072407
@inject Greeter.GreeterClient GreeterClient
24082408

@@ -2437,7 +2437,7 @@ Server response: <strong>@serverResponse</strong>
24372437
}
24382438
```
24392439

2440-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `BlazorSample`). To use the `Status.DebugException` property, use [`Grpc.Net.Client`](https://www.nuget.org/packages/Grpc.Net.Client) version 2.30.0 or later.
2440+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `BlazorSample`). To use the `Status.DebugException` property, use [`Grpc.Net.Client`](https://www.nuget.org/packages/Grpc.Net.Client) version 2.30.0 or later.
24412441
24422442
For more information, see <xref:grpc/grpcweb>.
24432443

@@ -2805,7 +2805,7 @@ using System.Net.Http;
28052805
using System.Net.Http.Json;
28062806
using System.Threading.Tasks;
28072807
using Microsoft.AspNetCore.Components.WebAssembly.Authentication;
2808-
using static {APP ASSEMBLY}.Data;
2808+
using static {ASSEMBLY NAME}.Data;
28092809

28102810
public class WeatherForecastClient
28112811
{
@@ -2835,7 +2835,7 @@ public class WeatherForecastClient
28352835
}
28362836
```
28372837

2838-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `using static BlazorSample.Data;`).
2838+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `using static BlazorSample.Data;`).
28392839

28402840
In `Program.cs`:
28412841

@@ -3608,7 +3608,7 @@ using System.Net.Http;
36083608
using Microsoft.AspNetCore.Components.WebAssembly.Authentication;
36093609
using Grpc.Net.Client;
36103610
using Grpc.Net.Client.Web;
3611-
using {APP ASSEMBLY}.Shared;
3611+
using {ASSEMBLY NAME}.Shared;
36123612

36133613
...
36143614

@@ -3626,14 +3626,14 @@ builder.Services.AddScoped(sp =>
36263626
});
36273627
```
36283628

3629-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `BlazorSample`). Place the `.proto` file in the `Shared` project of the hosted Blazor solution.
3629+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `BlazorSample`). Place the `.proto` file in the `Shared` project of the hosted Blazor solution.
36303630

36313631
A component in the client app can make gRPC calls using the gRPC client (`Pages/Grpc.razor`):
36323632

36333633
```razor
36343634
@page "/grpc"
36353635
@using Microsoft.AspNetCore.Authorization
3636-
@using {APP ASSEMBLY}.Shared
3636+
@using {ASSEMBLY NAME}.Shared
36373637
@attribute [Authorize]
36383638
@inject Greeter.GreeterClient GreeterClient
36393639

@@ -3668,7 +3668,7 @@ Server response: <strong>@serverResponse</strong>
36683668
}
36693669
```
36703670

3671-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `BlazorSample`). To use the `Status.DebugException` property, use [`Grpc.Net.Client`](https://www.nuget.org/packages/Grpc.Net.Client) version 2.30.0 or later.
3671+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `BlazorSample`). To use the `Status.DebugException` property, use [`Grpc.Net.Client`](https://www.nuget.org/packages/Grpc.Net.Client) version 2.30.0 or later.
36723672
36733673
For more information, see <xref:grpc/grpcweb>.
36743674

@@ -4036,7 +4036,7 @@ using System.Net.Http;
40364036
using System.Net.Http.Json;
40374037
using System.Threading.Tasks;
40384038
using Microsoft.AspNetCore.Components.WebAssembly.Authentication;
4039-
using static {APP ASSEMBLY}.Data;
4039+
using static {ASSEMBLY NAME}.Data;
40404040

40414041
public class WeatherForecastClient
40424042
{
@@ -4066,7 +4066,7 @@ public class WeatherForecastClient
40664066
}
40674067
```
40684068

4069-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `using static BlazorSample.Data;`).
4069+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `using static BlazorSample.Data;`).
40704070

40714071
In `Program.cs`:
40724072

@@ -4835,7 +4835,7 @@ using System.Net.Http;
48354835
using Microsoft.AspNetCore.Components.WebAssembly.Authentication;
48364836
using Grpc.Net.Client;
48374837
using Grpc.Net.Client.Web;
4838-
using {APP ASSEMBLY}.Shared;
4838+
using {ASSEMBLY NAME}.Shared;
48394839

48404840
...
48414841

@@ -4853,14 +4853,14 @@ builder.Services.AddScoped(sp =>
48534853
});
48544854
```
48554855

4856-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `BlazorSample`). Place the `.proto` file in the `Shared` project of the hosted Blazor solution.
4856+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `BlazorSample`). Place the `.proto` file in the `Shared` project of the hosted Blazor solution.
48574857

48584858
A component in the client app can make gRPC calls using the gRPC client (`Pages/Grpc.razor`):
48594859

48604860
```razor
48614861
@page "/grpc"
48624862
@using Microsoft.AspNetCore.Authorization
4863-
@using {APP ASSEMBLY}.Shared
4863+
@using {ASSEMBLY NAME}.Shared
48644864
@attribute [Authorize]
48654865
@inject Greeter.GreeterClient GreeterClient
48664866

@@ -4895,7 +4895,7 @@ Server response: <strong>@serverResponse</strong>
48954895
}
48964896
```
48974897

4898-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `BlazorSample`). To use the `Status.DebugException` property, use [`Grpc.Net.Client`](https://www.nuget.org/packages/Grpc.Net.Client) version 2.30.0 or later.
4898+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `BlazorSample`). To use the `Status.DebugException` property, use [`Grpc.Net.Client`](https://www.nuget.org/packages/Grpc.Net.Client) version 2.30.0 or later.
48994899
49004900
For more information, see <xref:grpc/grpcweb>.
49014901

aspnetcore/blazor/security/webassembly/hosted-with-azure-active-directory-b2c.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,15 @@ Support for <xref:System.Net.Http.HttpClient> instances is added that include ac
251251
`Program.cs`:
252252

253253
```csharp
254-
builder.Services.AddHttpClient("{APP ASSEMBLY}.ServerAPI", client =>
254+
builder.Services.AddHttpClient("{ASSEMBLY NAME}.ServerAPI", client =>
255255
client.BaseAddress = new Uri(builder.HostEnvironment.BaseAddress))
256256
.AddHttpMessageHandler<BaseAddressAuthorizationMessageHandler>();
257257

258258
builder.Services.AddScoped(sp => sp.GetRequiredService<IHttpClientFactory>()
259-
.CreateClient("{APP ASSEMBLY}.ServerAPI"));
259+
.CreateClient("{ASSEMBLY NAME}.ServerAPI"));
260260
```
261261

262-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `BlazorSample.Client`).
262+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `BlazorSample.Client`).
263263

264264
Support for authenticating users is registered in the service container with the <xref:Microsoft.Extensions.DependencyInjection.MsalWebAssemblyServiceCollectionExtensions.AddMsalAuthentication%2A> extension method provided by the [`Microsoft.Authentication.WebAssembly.Msal`](https://www.nuget.org/packages/Microsoft.Authentication.WebAssembly.Msal) package. This method sets up the services required for the app to interact with the Identity Provider (IP).
265265

@@ -661,15 +661,15 @@ Support for <xref:System.Net.Http.HttpClient> instances is added that include ac
661661
`Program.cs`:
662662
663663
```csharp
664-
builder.Services.AddHttpClient("{APP ASSEMBLY}.ServerAPI", client =>
664+
builder.Services.AddHttpClient("{ASSEMBLY NAME}.ServerAPI", client =>
665665
client.BaseAddress = new Uri(builder.HostEnvironment.BaseAddress))
666666
.AddHttpMessageHandler<BaseAddressAuthorizationMessageHandler>();
667667
668668
builder.Services.AddScoped(sp => sp.GetRequiredService<IHttpClientFactory>()
669-
.CreateClient("{APP ASSEMBLY}.ServerAPI"));
669+
.CreateClient("{ASSEMBLY NAME}.ServerAPI"));
670670
```
671671
672-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `BlazorSample.Client`).
672+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `BlazorSample.Client`).
673673
674674
Support for authenticating users is registered in the service container with the <xref:Microsoft.Extensions.DependencyInjection.MsalWebAssemblyServiceCollectionExtensions.AddMsalAuthentication%2A> extension method provided by the [`Microsoft.Authentication.WebAssembly.Msal`](https://www.nuget.org/packages/Microsoft.Authentication.WebAssembly.Msal) package. This method sets up the services required for the app to interact with the Identity Provider (IP).
675675
@@ -1071,15 +1071,15 @@ Support for <xref:System.Net.Http.HttpClient> instances is added that include ac
10711071
`Program.cs`:
10721072
10731073
```csharp
1074-
builder.Services.AddHttpClient("{APP ASSEMBLY}.ServerAPI", client =>
1074+
builder.Services.AddHttpClient("{ASSEMBLY NAME}.ServerAPI", client =>
10751075
client.BaseAddress = new Uri(builder.HostEnvironment.BaseAddress))
10761076
.AddHttpMessageHandler<BaseAddressAuthorizationMessageHandler>();
10771077
10781078
builder.Services.AddScoped(sp => sp.GetRequiredService<IHttpClientFactory>()
1079-
.CreateClient("{APP ASSEMBLY}.ServerAPI"));
1079+
.CreateClient("{ASSEMBLY NAME}.ServerAPI"));
10801080
```
10811081
1082-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `BlazorSample.Client`).
1082+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `BlazorSample.Client`).
10831083
10841084
Support for authenticating users is registered in the service container with the <xref:Microsoft.Extensions.DependencyInjection.MsalWebAssemblyServiceCollectionExtensions.AddMsalAuthentication%2A> extension method provided by the [`Microsoft.Authentication.WebAssembly.Msal`](https://www.nuget.org/packages/Microsoft.Authentication.WebAssembly.Msal) package. This method sets up the services required for the app to interact with the Identity Provider (IP).
10851085
@@ -1477,15 +1477,15 @@ Support for <xref:System.Net.Http.HttpClient> instances is added that include ac
14771477
`Program.cs`:
14781478
14791479
```csharp
1480-
builder.Services.AddHttpClient("{APP ASSEMBLY}.ServerAPI", client =>
1480+
builder.Services.AddHttpClient("{ASSEMBLY NAME}.ServerAPI", client =>
14811481
client.BaseAddress = new Uri(builder.HostEnvironment.BaseAddress))
14821482
.AddHttpMessageHandler<BaseAddressAuthorizationMessageHandler>();
14831483
14841484
builder.Services.AddScoped(sp => sp.GetRequiredService<IHttpClientFactory>()
1485-
.CreateClient("{APP ASSEMBLY}.ServerAPI"));
1485+
.CreateClient("{ASSEMBLY NAME}.ServerAPI"));
14861486
```
14871487
1488-
The placeholder `{APP ASSEMBLY}` is the app's assembly name (for example, `BlazorSample.Client`).
1488+
The placeholder `{ASSEMBLY NAME}` is the app's assembly name (for example, `BlazorSample.Client`).
14891489
14901490
Support for authenticating users is registered in the service container with the <xref:Microsoft.Extensions.DependencyInjection.MsalWebAssemblyServiceCollectionExtensions.AddMsalAuthentication%2A> extension method provided by the [`Microsoft.Authentication.WebAssembly.Msal`](https://www.nuget.org/packages/Microsoft.Authentication.WebAssembly.Msal) package. This method sets up the services required for the app to interact with the Identity Provider (IP).
14911491

0 commit comments

Comments
 (0)