Skip to content

CoreServiceCollectionExtensions.AddUserProvider method (1 of 3)

Adds the DefaultUserProvider as IUserProvider implementation to the service collection. Note that it requires IUserRetrieveService, IUserAcessor to be registered in the service collection. It also tries to register the DefaultUserClaimCreator.

public static IServiceCollection AddUserProvider(this IServiceCollection services)
parameter description
services The service collection.

See Also


CoreServiceCollectionExtensions.AddUserProvider<TUserAccessor,TUserRetrieveService> method (2 of 3)

Adds the DefaultUserProvider as IUserProvider implementation to the service collection. Also registers the given IUserAccessor and IUserRetrieveService implementations and tries to register the DefaultUserClaimCreator implementation.

public static IServiceCollection AddUserProvider<TUserAccessor, TUserRetrieveService>(
    this IServiceCollection services)
    where TUserAccessor : class, IUserAccessor
    where TUserRetrieveService : class, IUserRetrieveService
parameter description
services The service collection.

See Also


CoreServiceCollectionExtensions.AddUserProvider<TUserAccessor,TUserRetrieveService,TUserClaimCreator> method (3 of 3)

Adds the DefaultUserProvider as IUserProvider implementation to the service collection. Also registers the given IUserAccessor, IUserRetrieveService and IUserClaimCreator implementations.

public static IServiceCollection 
    AddUserProvider<TUserAccessor, TUserRetrieveService, TUserClaimCreator>(
    this IServiceCollection services)
    where TUserAccessor : class, IUserAccessor
    where TUserRetrieveService : class, IUserRetrieveService
    where TUserClaimCreator : class, IUserClaimCreator
parameter description
services The service collection.

See Also