I’ve got a question to the more experienced C#'lers.
I’m trying to implement a twitter client using tweetsharp api.
https://github.com/danielcrenna/tweetsharp
So far most stuff seem to work, however i have difficulties trying to get it all working on different threads / async. Dont have much experience with threading so i followed this page from msdn
http://msdn.microsoft.com/en-us/library/2e08f6yc(v=vs.100).aspx
Here is how i did it so far:
https://github.com/ethermammoth/VVVV.Nodes.Twitter/blob/master/TwitterApiAsync.cs
This is probably not the best way (certainly not the most elegant) of wrapping synchronous methods asynchronously? Also i don’t know if it is thread save. So i am looking for some example code or suggestions on how to do this better. It needs to be async as else it would block vvvv when e.g. uploading pictures to twitter and or waiting for web responses.