src/AspNetCore/Identity/Bearer/src/SignInManaging/IdentityBuilderExtensions.cs
/// <summary>
/// Adds <see cref="IBearerSignInManager"/> created from <paramref name="bearerSignInManagerFactory"/> to services.
/// </summary>
/// <typeparam name="DbContextType">Type of database context.</typeparam>
/// <typeparam name="UserType">Type of user entity.</typeparam>
/// <typeparam name="RoleType">Type of role entity.</typeparam>
/// <param name="identityBuilder">The identity builder.</param>
/// <param name="bearerSignInManagerFactory">A <see cref="IBearerSignInManager"/> factory.</param>
/// <param name="configureOptions">Configures options.</param>
/// <returns></returns>
Adds  created from  to services.
Adds created from to services .
public static IdentityBuilder AddBearerSignInManager<DbContextType, UserType, RoleType>(this IdentityBuilder identityBuilder, Func<IServiceProvider, IBearerSignInManager> bearerSignInManagerFactory,
            Action<BearerSignInManagerOptions>? configureOptions = null)
            where DbContextType : DbContext
            where UserType : class
            where RoleType : class
        {
            addBearerSignInManagerOptions(identityBuilder, configureOptions);
            var services = identityBuilder.Services;
            services.AddScoped(bearerSignInManagerFactory);
            return identityBuilder;
        }
public static IdentityBuilder AddBearerSignInManager < DbContextType , UserType , RoleType > ( this IdentityBuilder identityBuilder , Func < IServiceProvider , IBearerSignInManager > bearerSignInManagerFactory , Action < BearerSignInManagerOptions > ? configureOptions = null ) where DbContextType : DbContext where UserType : class where RoleType : class { addBearerSignInManagerOptions ( identityBuilder , configureOptions ) ; var services = identityBuilder . Services ; services . AddScoped ( bearerSignInManagerFactory ) ; return identityBuilder ; }
Adds  created from  to services.
Adds created from to services .
None
IdentityBuilder
this
bearerSignInManagerFactory
Func<IServiceProvider, IBearerSignInManager>
None
configureOptions
Action<BearerSignInManagerOptions>?
None
identityBuilder
The identity builder.
The identity builder .
typeparam
Type of database context.
Type of database context .
typeparam
Type of user entity.
Type of user entity .
typeparam
Type of role entity.
Type of role entity .