Comments (6)
Thank you for your answers and for the suggestions you gave me. I took a look at the stackoverflow link (as FrancisChung suggested) and I think I fall into the "deadlock" case described there by "Daniel". I tried to insert the 'Authorize' procedure in a separate thread and I verified that it works. However, I would like to be able to manage the Key (provided by DiscoGS) and tokens (provided by DiscoGSClient) within my WinForm application, so any suggestions to do this are welcome.
from discogsclient.
@David-Desmaisons My comments were meant to be directed at Traponto's code, not yours. Apologies for the miscommunication. And you're absolutely right about APIs needing to be context neutral.
from discogsclient.
Well, It is very hard to diagnostic anything from what you describe. I would say since DiscogsAuthenticationConsole
is working try to simplify your code to make it more and more similar to the sample application till it works.
from discogsclient.
Sounds like you need to synchronize your UI thread context.
from discogsclient.
@FrancisChung DiscogsClent is (and needs to be) agnostic in term of application context (WPF, or WinForm or console, or ASP etc...). So it is the caller responsability to make sure that the API is called on the "context" context.
from discogsclient.
from discogsclient.
Related Issues (17)
- How to authorize? HOT 3
- GetAllLabelReleases does not return all the releases from a Label HOT 5
- Authorize Requests - QueryString / Token Route HOT 2
- Support Marketplace endpoint HOT 1
- Error Code
- CS0118: "DiscogsClient" is a namespace but is used like a type HOT 1
- Artist for each track in tracklist HOT 6
- Add Images
- Update RestSharp dependency
- Requesting OAuth Token and TokenSecret HOT 2
- Empty image url HOT 3
- Program.cs it doesn't go over HOT 5
- Subtrack in tracklist HOT 12
- How to get artist master id using this API? HOT 4
- New info extracted from your library HOT 10
- Missing ForEachAsync HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discogsclient.