-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Questions] Can we call a step from an api endpoint #30
Comments
No, the steps should be used exclusively to handle what is coming or going to QuickBooks. Does that make sense? |
Thanks for the answer! Yeah, that makes sense, but I am looking to call the manager from a Rest endpoint somehow. I'm not seeing where the methods of the manager are called after the Soap request. i.e. I'm not seeing how this is called: https://github.com/jsgoupil/quickbooks-sync/blob/master/src/WebConnector/Impl/QbManager.cs#L126 Also, forgive me as I am a Java/Node dev. Not much of a dotnet dev yet. My guess is I need to add an option here: https://github.com/jsgoupil/quickbooks-sync/blob/master/src/WebConnector/Extensions/ApplicationBuilderExtensions.cs#L19 to pass in a REST endpoint to get the manager. Then maybe call the steps I have injected? |
Hi highly recommend that you don't do that. You're passing through a lot of dependencies that even I don't handle. It's using another NuGet package. But once again, I highly don't recommend this, other than unit testing. If this is for production code, you should load your own interface and not use the SyncManager. |
Hey! Just wondering if there is a way to call a step without waiting for the web connector to make the request. I'd like to be able to call an endpoint
/sync
and start the sync process.I'm assuming I'd have to build up the manager inside of the endpoint, but not sure.
The text was updated successfully, but these errors were encountered: