hi
I can't build your project.
Maybe we are going in the wrong direction. Is your current goal to replace UserManage with your custom service in the entire microservice?
hi
ActivationEndDate should have a value and >= Clock.Now
public enum TenantActivationState : byte
{
Active = 0,
ActiveWithLimitedTime = 1,
Passive = 2
}
public virtual Task<bool> IsActiveAsync(Tenant tenant)
{
return Task.FromResult(tenant.ActivationState switch
{
TenantActivationState.Active => true,
TenantActivationState.Passive => false,
TenantActivationState.ActiveWithLimitedTime => tenant.ActivationEndDate >= Clock.Now,
_ => false
});
}```
ok, I will check it later.
hi
https://github.com/maliming
hi
The error logs of the An error occurred using the connection to database are caused by TaskCanceledException: A task was canceled in the Index page.
OK I commented out the // Application = await OpenIdApplicationRepository.GetListAsync(); line, ?I am still getting the : [ERR] An error occurred using the connection to database 'ESv2-testing' on server 'tcp:hathor-hk.database.windows.net,1433'. error intermittently.
Can you share these logs?
Thanks
You can share a template project similar to yours, and I will add code to replace the UserManager and IdentitySessionDynamicClaimsPrincipalContributor then share the code with you.
Writing code remotely can be difficult and slow.
hi
Can you share a simple project, I can download and check the code.
https://wetransfer.com/ liming.ma@volosoft.com
This must be an issue with the running environment. Are there any logs in the database when errors occur?