Cosmetic FIX for

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 anni tempo fa
Can you implement this cosmetic fix?

PictureService  has a method GetImagesPathUrlAsync
old code
         var pathBase = _httpContextAccessor.HttpContext.Request.PathBase.Value ?? string.Empty;
new code
         var pathBase = _httpContextAccessor.HttpContext.Request?.PathBase.Value ?? string.Empty;

If I use pictureservise from the task I have
httpContextAccessor.HttpContext.Request = null
I want to add ?  after HttpContext.Request

Thank you
2 anni tempo fa
Done.
BTW, what task do you mean, why is there no request at this time?
2 anni tempo fa
Thank you
>why is there no request at this time?
I don't know. I'll investigate this issue and write to you.
I creates the feed file using POST request in the background to nopcommerce.
And I saw the _httpContextAccessor.HttpContext.Request == null
I am sure that anyone will not have this issue.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.