We work on a mircroservice applicaction.
I have a function on service 2 (for sending message) that can be use from UI (user can send message) or via backgroud job (every x mins check if I've message to send).
If I try to send message via UI my user is valid and I can pass the token from service 1 -> service 2 but when I try to run it on background job it doesn't work. So it works correctly because background is different process/thread so it don't have an authenticated context.
My question wich is the correct configuration for allow my service 1 work for users and jobs? Is it possibile or I need to move my job in a different service?
Thanks
Great!
It works fine.
Thanks
Hi
How can I push js script into login page (this page is embedded on account DLL).
I can only work on index.
I need to customize all login page to achive this result.
Hi I can't upgrade right now beacuse we need to test all services in 8.x before upgrade.
How can I patch it has you suggest?
I can't semply add class beacuse the login page is embedded on account module (MVC)
I have an issue with auth server on 7.4.5.
I create a new solution 7.4.5 if you try to login on auth server the page not slide if area is small.
I see that in 7.4.5
<div class="container-fluid p-0 overflow-hidden">
...
</dv>
If I set overflow-x: hidden; it slide but I see a black band at the end off page.
How can we fix it?
I'll try it
Hi
I'll try but I think it works beacuse task raise exception inside the try but is this the best approch to use UOW in using?
About Insert/Update issue any idea?
I've an handler to sync data from microservices
public async Task HandleEventAsync(ProductEto eventData)
{
if (eventData != null)
{
using (var unitOfWork = _unitOfWorkManager.Begin())
{
_currentTenant.Change(eventData.TenantId);
try
{
var gmd = _objectMapper.Map<ProductEto, ProductSync>(eventData);
await _productSyncRepository.InsertAsync(gmd);
}
catch (Exception ex)
{
Logger.LogError(ex, "Handle Event ProductEto Error");
}
finally
{
await unitOfWork.CompleteAsync();
}
}
}
else
{
Logger.LogWarning("Input data is null into handle event ProductEto");
}
}
In this case I've a PK duplicate so Postgres raise an excetion but this happen in finally and my handler continue to retry process my data.
Also I observe that if I call InsertAsyc/UpdateAsync and not return to a local varibile update or insert in some case does't work, if I return the value it always work.