Skip to content
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
4 changes: 3 additions & 1 deletion .github/workflows/quest-bulk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:
- name: "Print manual bulk import run reason"
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo "Reason: ${{ github.event.inputs.reason }}"
echo "Reason: $REASON"
env:
REASON: ${{ github.event.inputs.reason }}

- name: Azure OpenID Connect
id: azure-oidc-auth
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/quest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ jobs:
- name: "Print manual run reason"
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo "Reason: ${{ github.event.inputs.reason }}"
echo "Issue number: ${{ github.event.inputs.issue }}"

echo "Reason: $REASON"
echo "Issue number: $ISSUENUMBER"
env:
REASON: ${{ github.event.inputs.reason }}
ISSUENUMBER: ${{ github.event.inputs.issue }}
I
- name: Azure OpenID Connect
id: azure-oidc-auth
uses: dotnet/docs-tools/.github/actions/oidc-auth-flow@main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ The following component is used to demonstrate how changing the value of `Notify
private int dalekCount;

[CascadingParameter]
public NotifyingDalek? Dalek { get; set; }
private NotifyingDalek? Dalek { get; set; }

private void Update()
{
Expand Down Expand Up @@ -433,6 +433,8 @@ For more information, see the following sections of this article:

To make use of cascading values, descendent components declare cascading parameters using the [`[CascadingParameter]` attribute](xref:Microsoft.AspNetCore.Components.CascadingParameterAttribute). Cascading values are bound to cascading parameters **by type**. Cascading multiple values of the same type is covered in the [Cascade multiple values](#cascade-multiple-values) section later in this article.

The `private` access modifier is recommended for cascading parameters because the parameter should be scoped for use only within the component's class in most cases. When subclassing is required, use the `protected` access modifier.

The following component binds the `ThemeInfo` cascading value to a cascading parameter, optionally using the same name of `ThemeInfo`. The parameter is used to set the CSS class for the **`Increment Counter (Themed)`** button.

`ThemedCounter.razor`:
Expand Down Expand Up @@ -657,7 +659,7 @@ Descendent `Tab` components capture the containing `TabSet` as a cascading param

@code {
[CascadingParameter]
public TabSet? ContainerTabSet { get; set; }
private TabSet? ContainerTabSet { get; set; }

[Parameter]
public string? Title { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Reusable components are free to receive an <xref:Microsoft.AspNetCore.Http.HttpC

```csharp
[CascadingParameter]
public HttpContext? Context { get; set; }
private HttpContext? Context { get; set; }
```

The value is `null` during interactive rendering and is only set during static SSR.
Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/blazor/components/httpcontext.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ uid: blazor/components/httpcontext

```csharp
[CascadingParameter]
public HttpContext? HttpContext { get; set; }
private HttpContext? HttpContext { get; set; }
```

For additional context in *advanced* edge cases&dagger;, see the discussion in the following articles:
Expand Down
6 changes: 3 additions & 3 deletions aspnetcore/blazor/fundamentals/handle-errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ To process errors in a component:

```csharp
[CascadingParameter]
public ProcessError? ProcessError { get; set; }
private ProcessError? ProcessError { get; set; }
```

* Call an error processing method in any `catch` block with an appropriate exception type. The example `ProcessError` component only offers a single `LogError` method, but the error processing component can provide any number of error processing methods to address alternative error processing requirements throughout the app. The following `Counter` component `@code` block example includes the `ProcessError` cascading parameter and traps an exception for logging when the count is greater than five:
Expand All @@ -606,7 +606,7 @@ To process errors in a component:
private int currentCount = 0;

[CascadingParameter]
public ProcessError? ProcessError { get; set; }
private ProcessError? ProcessError { get; set; }

private void IncrementCount()
{
Expand Down Expand Up @@ -689,7 +689,7 @@ To process errors in a component:

```razor
[CascadingParameter]
public ProcessError ProcessError { get; set; }
private ProcessError ProcessError { get; set; }
```

* Call an error processing method in any `catch` block with an appropriate exception type. The example `ProcessError` component only offers a single `LogError` method, but the error processing component can provide any number of error processing methods to address alternative error processing requirements throughout the app.
Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/blazor/fundamentals/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ Apps that implement a custom router can also use `NavigationManager.NotFound`. T
```razor
@code {
[CascadingParameter]
public HttpContext? HttpContext { get; set; }
private HttpContext? HttpContext { get; set; }

private void OnNotFoundEvent(object sender, NotFoundEventArgs e)
{
Expand Down
4 changes: 2 additions & 2 deletions aspnetcore/blazor/globalization-localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ Add the following `@code` block to the bottom of the `App` component file:
```razor
@code {
[CascadingParameter]
public HttpContext? HttpContext { get; set; }
private HttpContext? HttpContext { get; set; }

protected override void OnInitialized()
{
Expand Down Expand Up @@ -1350,7 +1350,7 @@ Add the following `@code` block to the bottom of the `App` component file:
```razor
@code {
[CascadingParameter]
public HttpContext? HttpContext { get; set; }
private HttpContext? HttpContext { get; set; }

protected override void OnInitialized()
{
Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/blazor/hybrid/root-component-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ The following `Keypad` component example:

@code {
[CascadingParameter]
protected KeypadViewModel KeypadViewModel { get; set; }
private KeypadViewModel KeypadViewModel { get; set; }

private void DeleteChar()
{
Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/blazor/security/content-security-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ The rendered import map from the `ImportMap` component is generated by the app a
private string? integrity;

[CascadingParameter]
public HttpContext? HttpContext { get; set; }
private HttpContext? HttpContext { get; set; }

protected override void OnInitialized()
{
Expand Down
Loading