Share via


CascadingAuthenticationStateServiceCollectionExtensions.AddCascadingAuthenticationState Method

Definition

Adds cascading authentication state to the serviceCollection. This is equivalent to having a CascadingAuthenticationState component at the root of your component hierarchy.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddCascadingAuthenticationState (this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection);
static member AddCascadingAuthenticationState : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddCascadingAuthenticationState (serviceCollection As IServiceCollection) As IServiceCollection

Parameters

serviceCollection
IServiceCollection

The IServiceCollection.

Returns

The IServiceCollection.

Applies to