How will Identity know to use my custom implementations of its core interfaces?

ProfK

I have found two fairly comprehensive articles detailing how to implement Identity services like IUserStore<,>, and am nearly done with them, e.g. where I have a:

public class QsaasUserStore<TLogin> : IUserStore<QsaasUser<TLogin>, int> where TLogin : QsaasUserLogin<int>

Now what is bothering me, is how to I tell Identity to use QsaasUserStore<TLogin> when it needs a user store? Do I need to implement method overrides, or can I use Unity to provide my user store whenever Identity needs an IUserStore?

trailmax

Look on the constructors of UserManager and RoleManager. UserManager takes dependency on IUserStore in constructor. So whatever way you create your UserManager, provide your implementation of IUserStore in the constructor.

Same goes for RoleManager - provide your implementation of IRoleStore in the constructor and you are done.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to use my custom system call with its name and not with its number

From Dev

How to know the `status of my API call` when its `success'?

From Dev

how to force magento to use my custom price

From Dev

How to use my own database in ASP.NET Identity (WebForms)

From Dev

How to Use ASP.NET Identity with your own Custom Table

From Dev

Use the same database for both my custom entities and identity context?

From Dev

How do I have my UIView use my custom CALayer as its backing layer?

From Dev

How will Identity know to use my custom implementations of its core interfaces?

From Dev

How to register multiple implementations with its own interface in ASP.NET Core using Reflection?

From Dev

hierarchical interfaces and implementations

From Dev

How does git know which ssh key to use for its operations?

From Dev

How to use my own identity information for git commit

From Dev

How to know if user remove my custom keyboard from iPhone settings?

From Dev

Does Kotlin provide any implementations of its collection interfaces?

From Dev

Use .NET Core Identity with an API

From Dev

How can I know that my CPU shares the vector registers among the cores or each core has its private ones

From Dev

Spring Boot - interfaces and implementations

From Dev

How to Use ASP.NET Identity with your own Custom Table

From Dev

How to test implementations of interfaces in Laravel

From Dev

Separating interfaces and implementations

From Dev

How can I use Monocle's built in law implementations to test my own lenses?

From Dev

hierarchical interfaces and implementations

From Dev

How does git know which ssh key to use for its operations?

From Dev

How to use my own identity information for git commit

From Dev

How to know if user remove my custom keyboard from iPhone settings?

From Dev

issue with my dbcontext in asp.core. Dont know how to use DbContextOptions object

From Dev

How to use custom HistoryRepository in EF Core?

From Dev

How to use the dot command (.) in my custom command?

From Dev

Xunit - How to use Moq and EF Core for Identity Primary Key

Related Related

  1. 1

    How to use my custom system call with its name and not with its number

  2. 2

    How to know the `status of my API call` when its `success'?

  3. 3

    how to force magento to use my custom price

  4. 4

    How to use my own database in ASP.NET Identity (WebForms)

  5. 5

    How to Use ASP.NET Identity with your own Custom Table

  6. 6

    Use the same database for both my custom entities and identity context?

  7. 7

    How do I have my UIView use my custom CALayer as its backing layer?

  8. 8

    How will Identity know to use my custom implementations of its core interfaces?

  9. 9

    How to register multiple implementations with its own interface in ASP.NET Core using Reflection?

  10. 10

    hierarchical interfaces and implementations

  11. 11

    How does git know which ssh key to use for its operations?

  12. 12

    How to use my own identity information for git commit

  13. 13

    How to know if user remove my custom keyboard from iPhone settings?

  14. 14

    Does Kotlin provide any implementations of its collection interfaces?

  15. 15

    Use .NET Core Identity with an API

  16. 16

    How can I know that my CPU shares the vector registers among the cores or each core has its private ones

  17. 17

    Spring Boot - interfaces and implementations

  18. 18

    How to Use ASP.NET Identity with your own Custom Table

  19. 19

    How to test implementations of interfaces in Laravel

  20. 20

    Separating interfaces and implementations

  21. 21

    How can I use Monocle's built in law implementations to test my own lenses?

  22. 22

    hierarchical interfaces and implementations

  23. 23

    How does git know which ssh key to use for its operations?

  24. 24

    How to use my own identity information for git commit

  25. 25

    How to know if user remove my custom keyboard from iPhone settings?

  26. 26

    issue with my dbcontext in asp.core. Dont know how to use DbContextOptions object

  27. 27

    How to use custom HistoryRepository in EF Core?

  28. 28

    How to use the dot command (.) in my custom command?

  29. 29

    Xunit - How to use Moq and EF Core for Identity Primary Key

HotTag

Archive