48 references to CascadingValue
Aspire.Dashboard.Components.Tests (25)
Controls\AspireMenuTests.cs (1)
316
var menuHost = Render<
CascadingValue
<bool>>(builder =>
Controls\GenAIVisualizerDialogTests.cs (1)
400
cut = Render<
CascadingValue
<IDialogInstance>>(builder =>
Controls\TextVisualizerDialogTests.cs (1)
670
cut = Render<
CascadingValue
<IDialogInstance>>(builder =>
Dialogs\InteractionMessageBoxDialogTests.cs (1)
134
cut = Render<
CascadingValue
<IDialogInstance>>(builder =>
Dialogs\InteractionsTerminalDialogTests.cs (1)
115
var host = Assert.IsAssignableFrom<IRenderedComponent<
CascadingValue
<IDialogInstance>>>(cut);
Layout\MainLayoutTests.cs (1)
1023
var cut = Render<
CascadingValue
<ViewportInformation>>(builder =>
Layout\ResourcesLayoutActivityTests.cs (1)
69
var cut = Render<
CascadingValue
<ViewportInformation>>(builder =>
Layout\ResourcesLayoutHomeTests.cs (3)
156
var cut = Render<
CascadingValue
<ViewportInformation>>(p => p.Add(v => v.Value, desktop).AddChildContent<ResourcesLayout>());
186
var cut = Render<
CascadingValue
<ViewportInformation>>(p => p.Add(v => v.Value, desktop).AddChildContent<ResourcesLayout>());
498
var cut = Render<
CascadingValue
<ViewportInformation>>(p => p.Add(v => v.Value, desktop).AddChildContent<ResourcesLayout>());
Layout\ResourcesLayoutTests.cs (2)
806
var cut = Render<
CascadingValue
<ViewportInformation>>(builder =>
3247
var cut = Render<
CascadingValue
<ViewportInformation>>(builder =>
Pages\ConsoleLogsTests.cs (3)
1200
builder.OpenComponent<
CascadingValue
<ViewportInformation>>(0);
1201
builder.AddAttribute(1, nameof(
CascadingValue
<ViewportInformation>.Value), viewport);
1202
builder.AddAttribute(2, nameof(
CascadingValue
<ViewportInformation>.ChildContent), (RenderFragment)(childBuilder =>
Pages\LoginTests.cs (3)
41
builder.OpenComponent<
CascadingValue
<Task<AuthenticationState>>>(1);
42
builder.AddAttribute(2, nameof(
CascadingValue
<Task<AuthenticationState>>.Value), tcs.Task);
43
builder.AddAttribute(3, nameof(
CascadingValue
<Task<AuthenticationState>>.ChildContent), (RenderFragment)(childBuilder =>
Pages\TerminalsTests.cs (3)
377
var dialogProvider = Render<
CascadingValue
<ViewportInformation>>(builder => builder
449
var dialogProvider = Render<
CascadingValue
<ViewportInformation>>(builder => builder
476
var dialogProvider = Render<
CascadingValue
<ViewportInformation>>(builder => builder
Shared\FluentUISetupHelpers.cs (3)
436
builder.OpenComponent<
CascadingValue
<ViewportInformation>>(2);
437
builder.AddComponentParameter(3, nameof(
CascadingValue
<ViewportInformation>.Value), viewport);
438
builder.AddComponentParameter(4, nameof(
CascadingValue
<ViewportInformation>.ChildContent), (RenderFragment)(contentBuilder =>
Shared\InteractionsSetupHelpers.cs (1)
31
cut = context.Render<
CascadingValue
<IDialogInstance>>(builder =>
Microsoft.AspNetCore.Components (13)
CascadingParameterAttribute.cs (3)
8
/// supplied by the closest ancestor <see cref="
CascadingValue
{T}"/> component that
16
/// ancestor <see cref="
CascadingValue
{T}"/> that supplies a value with
20
/// <see cref="
CascadingValue
{T}"/> that supplies a value with a compatible
CascadingValue.cs (3)
81
throw new ArgumentException($"The parameter '{nameof(Name)}' for component '{nameof(
CascadingValue
<TValue>)}' does not allow null or empty values.");
90
throw new ArgumentException($"The component '{nameof(
CascadingValue
<TValue>)}' does not accept a parameter with the name '{parameter.Name}'.");
154
throw new InvalidOperationException($"Cannot subscribe to a {typeof(
CascadingValue
<>).Name} when {nameof(IsFixed)} is true.");
CascadingValueServiceCollectionExtensions.cs (6)
17
/// a fixed <see cref="
CascadingValue
{TValue}"/> at the root of the component hierarchy.
29
/// a fixed <see cref="
CascadingValue
{TValue}"/> at the root of the component hierarchy.
42
/// a <see cref="
CascadingValue
{TValue}"/> at the root of the component hierarchy.
76
/// with the value type. This is equivalent to having a fixed <see cref="
CascadingValue
{TValue}"/> at
94
/// <see cref="
CascadingValue
{TValue}"/> at the root of the component hierarchy.
111
/// with the value type. This is equivalent to having a fixed <see cref="
CascadingValue
{TValue}"/> at
ParameterValue.cs (1)
31
/// was supplied by a <see cref="
CascadingValue
{T}"/>.
Microsoft.AspNetCore.Components.AI (2)
Components\AgentBoundary.cs (1)
58
builder.OpenComponent<
CascadingValue
<AgentContext>>(0);
Components\MessageList.cs (1)
98
builder.OpenComponent<
CascadingValue
<MessageListContext>>(0);
Microsoft.AspNetCore.Components.Authorization (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\CascadingAuthenticationState_razor.g.cs (3)
29
__builder.OpenComponent<global::Microsoft.AspNetCore.Components.
CascadingValue
<
38
__builder.AddComponentParameter(1, nameof(global::Microsoft.AspNetCore.Components.
CascadingValue
<System.Threading.Tasks.Task<AuthenticationState>>.
55
__builder.AddComponentParameter(2, nameof(global::Microsoft.AspNetCore.Components.
CascadingValue
<System.Threading.Tasks.Task<AuthenticationState>>.
Microsoft.AspNetCore.Components.QuickGrid (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\QuickGrid_razor.g.cs (3)
53
__builder.OpenComponent<global::Microsoft.AspNetCore.Components.
CascadingValue
<
62
__builder.AddComponentParameter(1, nameof(global::Microsoft.AspNetCore.Components.
CascadingValue
<InternalGridContext<TGridItem>>.
79
__builder.AddComponentParameter(2, nameof(global::Microsoft.AspNetCore.Components.
CascadingValue
<InternalGridContext<TGridItem>>.
Microsoft.AspNetCore.Components.Web (2)
Forms\EditForm.cs (1)
167
builder.OpenComponent<
CascadingValue
<EditContext>>(7);
Forms\InputRadioGroup.cs (1)
75
builder.OpenComponent<
CascadingValue
<InputRadioContext>>(0);