1 type derived from CascadingValueSource
Microsoft.AspNetCore.Components.Authorization (1)
CascadingAuthenticationStateServiceCollectionExtensions.cs (1)
29
private sealed class AuthenticationStateCascadingValueSource :
CascadingValueSource
<Task<AuthenticationState>>, IDisposable
4 instantiations of CascadingValueSource
Microsoft.AspNetCore.Components (4)
CascadingValueServiceCollectionExtensions.cs (4)
25
=> serviceCollection.AddScoped<ICascadingValueSupplier>(sp => new
CascadingValueSource
<TValue>(() => initialValueFactory(sp), isFixed: true));
38
=> serviceCollection.AddScoped<ICascadingValueSupplier>(sp => new
CascadingValueSource
<TValue>(name, () => initialValueFactory(sp), isFixed: true));
88
sp => new
CascadingValueSource
<TValue>(() => valueFactory(sp), isFixed: true)));
106
sp => new
CascadingValueSource
<TValue>(name, () => valueFactory(sp), isFixed: true)));
13 references to CascadingValueSource
Microsoft.AspNetCore.Components (13)
CascadingValueServiceCollectionExtensions.cs (9)
44
/// With this overload, you can supply a <see cref="
CascadingValueSource
{TValue}"/> which allows you
50
/// <param name="sourceFactory">A callback that supplies a <see cref="
CascadingValueSource
{TValue}"/> within each service provider scope.</param>
53
this IServiceCollection serviceCollection, Func<IServiceProvider,
CascadingValueSource
<TValue>> sourceFactory)
87
ServiceDescriptor.Scoped<ICascadingValueSupplier,
CascadingValueSource
<TValue>>(
105
ServiceDescriptor.Scoped<ICascadingValueSupplier,
CascadingValueSource
<TValue>>(
114
/// With this overload, you can supply a <see cref="
CascadingValueSource
{TValue}"/> which allows you
120
/// <param name="sourceFactory">A callback that supplies a <see cref="
CascadingValueSource
{TValue}"/> within each service provider scope.</param>
123
this IServiceCollection serviceCollection, Func<IServiceProvider,
CascadingValueSource
<TValue>> sourceFactory)
126
ServiceDescriptor.Scoped<ICascadingValueSupplier,
CascadingValueSource
<TValue>>(sourceFactory));
CascadingValueSource.cs (4)
28
/// Constructs an instance of <see cref="
CascadingValueSource
{TValue}"/>.
38
/// Constructs an instance of <see cref="
CascadingValueSource
{TValue}"/>.
50
/// Constructs an instance of <see cref="
CascadingValueSource
{TValue}"/>.
60
/// Constructs an instance of <see cref="
CascadingValueSource
{TValue}"/>.