Using Umbraco Commerce from a Background Job #545
Unanswered
justin-nevitech
asked this question in
Q&A
Replies: 2 comments
-
Yea, unfortunately we can only work out if it's a local env if we have access to the domain, but I guess we could implement a background license that assumes if there is no HTTP Context that it should be fully licensed 🤔 I'll need to check this logic with some other folks though just to make sure we aren't exposing more than we should be. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks @mattbrailsford. We have a work-around for now so not urgent or anything. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Matt,
We've need to pull in some external data that is processed by a background job using Hangfire into an order property, but when we try and save the order it throws an invalid licence exception on localhost (which I believe should not have any licence restrictions). From what I think is happening is that Umbraco Commerce is looking at the HTTP context to determine the domain which of course will be null in a Hangfire job.
I can mock a HTTP context to get around this and get it working but wondered if there was a better way to handle the licencing from a background job?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions