ShopifySharp | NET library that helps developers | Ecommerce library
kandi X-RAY | ShopifySharp Summary
kandi X-RAY | ShopifySharp Summary
ShopifySharp is a .NET library that enables you to authenticate and make API calls to Shopify. It's great for building custom Shopify Apps using C# and .NET. You can quickly and easily get up and running with Shopify using this library.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ShopifySharp
ShopifySharp Key Features
ShopifySharp Examples and Code Snippets
Community Discussions
Trending Discussions on ShopifySharp
QUESTION
I have downloaded the ShopifySharp project and am trying to make my own executionpolicy by implementing the IRequestExecutionPolicy (https://github.com/nozzlegear/ShopifySharp/blob/master/ShopifySharp/Infrastructure/Policies/RetryExecutionPolicy.cs).
In the example project there is no such "not implemented error". However, a similar implementation puts this "[AsyncStateMachine(typeof(SmartRetryExecutionPolicy.d__5<>))]" before the method.
From what I can tell, making the method async changes the signature and is therefore not implementing the Run method. I'm not very experienced in this area so any help is appreciated.
...ANSWER
Answered 2021-Sep-29 at 10:30From what I can tell, making the method async changes the signature
No, it's not. And this is precisely the reason why you will never see async
in interfaces.
async
keyword is just so you can do await
s and return T
instead of return Task
. The compiler will wrap it for you. But both the signature, and the way the method is called during the runtime are the same.
QUESTION
I have a webhook api handler for Shopify which calls the below controller action with a json body. It is failing immediately because no log4net logging is being reached and logged except the one in the OnException
method with the error below.
Question 1:
The Stack Trace in the Elmah log is not helpful in that it doesn't go down far enough to show which line in the code originated the error. Why is this? I've noticed this with async
errors...they seem harder to determine the root cause line in the code. Maybe I should make it a synchronous method for now? Maybe I should just get rid of the OnException
method as it could be obscuring more info?
Question 2:
What could possibly causing this error immediately upon hitting the controller action before any code is executed? This controller inherits the asp.net mvc Controller
and the only code in the constructor is to create an instance of the DBContext
and the log4net
_logger
.
Stack Trace:
...ANSWER
Answered 2021-Feb-14 at 05:38I am not sure that I understand you correct, but try temporary wraps background call in additional method with logging and try catch:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ShopifySharp
Redirect your users to this authorization URL, where they'll be prompted to install your app to their Shopify store.
Once you've sent a user to the authorization URL and they've confirmed your app installation, they'll be redirected back to your application at either the default app URL, or the redirect URL you passed in when building the authorization URL. The access token you receive after authorizing should be stored in your database. You'll need it to access the shop's resources (e.g. orders, customers, fulfillments, etc.).
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page