Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How will I use the SignInManager with the ElasticScaleContext? #231

Open
saadsaeed01 opened this issue Apr 1, 2023 · 0 comments
Open

How will I use the SignInManager with the ElasticScaleContext? #231

saadsaeed01 opened this issue Apr 1, 2023 · 0 comments

Comments

@saadsaeed01
Copy link

saadsaeed01 commented Apr 1, 2023

Hi there

My question is will these tools work with IdentyCore? How can I use the ElasticScaleContext with the SignInManager?

In the example given below, blogs are being fetched for a specific tenant:

SqlDatabaseUtils.SqlRetryPolicy.ExecuteAction(() =>
          {
              using (var db = new ElasticScaleContext<int>(sharding.ShardMap, s_tenantId2, connStrBldr.ConnectionString))
              {
                  // Display all Blogs from the database 
                  var query = from b in db.Blogs
                              orderby b.Name
                              select b;

                  Console.WriteLine("All blogs for tenant id {0}:", s_tenantId2);
                  foreach (var item in query)
                  {
                      Console.WriteLine(item.Name);
                  }
              }
          });

How will use the SignInManager to check whether the user is authentic or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant