ok,a nd you can share a token by email. liming.ma@volosoft.com
I can check it as well.
https://abp.io/docs/latest/modules/account/impersonation#angular
hi
It seems that the HttpContextAccessor.HttpContext
is null
. Can you set a breakpoint to confirm this?
You can skip adding headers if HttpContext
is null
if (HttpContextAccessor.HttpContext != null )
{
foreach (var header in HttpContextAccessor.HttpContext!.Request.Headers.Where(x => x.Key != "Accept-Encoding"))
{
requestMessage.Headers.TryAddWithoutValidation(header.Key, header.Value.ToArray());
}
}
Thanks.
hi
Do you use the account and identity source code in your project?
Can you share a project to reproduce the problem so that I can check it locally?
Thanks.
liming.ma@volosoft.com
hi
I have tested the code.
Can you share a simple/template project to reproduce?
liming.ma@volosoft.com
hi
The module should be abstract, it can depend on the Volo.Abp.BackgroundJobs.Abstractions
or Volo.Abp.BackgroundJobs
module.
Then, use hangfire to replace it in your application.
So that your application can use its preferred implementation(hangfire
or Quartz
)
hi
You can create a new template project, then use your steps to reproduce the problem and share the template project. liming.ma@volosoft.com
Thanks.
hi
You can create a new template project, then use your steps to reproduce the problem and share the template project. liming.ma@volosoft.com
Thanks.