CascadingValueServiceCollectionExtensions Class

Definition

Extension methods for configuring cascading values on an IServiceCollection.

public static class CascadingValueServiceCollectionExtensions
type CascadingValueServiceCollectionExtensions = class
Public Module CascadingValueServiceCollectionExtensions
Inheritance
CascadingValueServiceCollectionExtensions

Methods

AddCascadingValue<TValue>(IServiceCollection, Func<IServiceProvider,CascadingValueSource<TValue>>)

Adds a cascading value to the serviceCollection. This is equivalent to having a CascadingValue<TValue> at the root of the component hierarchy.

With this overload, you can supply a CascadingValueSource<TValue> which allows you to notify about updates to the value later, causing recipients to re-render. This overload should only be used if you plan to update the value dynamically.

AddCascadingValue<TValue>(IServiceCollection, Func<IServiceProvider,TValue>)

Adds a cascading value to the serviceCollection. This is equivalent to having a fixed CascadingValue<TValue> at the root of the component hierarchy.

AddCascadingValue<TValue>(IServiceCollection, String, Func<IServiceProvider,TValue>)

Adds a cascading value to the serviceCollection. This is equivalent to having a fixed CascadingValue<TValue> at the root of the component hierarchy.

TryAddCascadingValue<TValue>(IServiceCollection, Func<IServiceProvider,CascadingValueSource<TValue>>)

Adds a cascading value to the serviceCollection, if none is already registered with the value type. This is equivalent to having a fixed CascadingValue<TValue> at the root of the component hierarchy.

With this overload, you can supply a CascadingValueSource<TValue> which allows you to notify about updates to the value later, causing recipients to re-render. This overload should only be used if you plan to update the value dynamically.

TryAddCascadingValue<TValue>(IServiceCollection, Func<IServiceProvider,TValue>)

Adds a cascading value to the serviceCollection, if none is already registered with the value type. This is equivalent to having a fixed CascadingValue<TValue> at the root of the component hierarchy.

TryAddCascadingValue<TValue>(IServiceCollection, String, Func<IServiceProvider,TValue>)

Adds a cascading value to the serviceCollection, if none is already registered with the value type, regardless of the name. This is equivalent to having a fixed CascadingValue<TValue> at the root of the component hierarchy.

Applies to