is it possible to get a vendr order in a console app? #375
ribsdigital
started this conversation in
General
Replies: 1 comment 2 replies
-
Hey @ribsdigital Interesting question. First off, the Vendr.Core project shouldn't have any Umbraco dependency at all so that should be a safe bet, however our Vendr.Startup package which is responsible for wiring everything up with the DI container currently does (this might change once v3 is launched and we have our own Without the Startup project though you'd have to wire everything up yourself which could pose some problems so my guess is right now this might be a no 🤔 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hey out there,
we've used console app as an example for this question but it could be anything that isn't umbraco site based eg an azure function...
we've a number of sites that perform actions after an order has been taken e.g. generate a order invoice pdf and email it to the customer. this code has been offloaded to an azure function.
at the moment, when the function is successful we hit an api endpoint on the site in question that updates the vendr order to say the invoice has been generated and emailed.
however... it would be better if we could interact with the order directly in the azure function.
is this possible? we can't work out at the moment if the dependency on umbraco is to hard to unpick or we can easily drop the vendr core into the azure function and interact with it?
defo interested to hear if anyone has been experimenting with this!
Beta Was this translation helpful? Give feedback.
All reactions