CascadingAuthenticationStateServiceCollectionExtensions.AddCascadingAuthenticationState Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.