Also,
I have reconsidered my position over the static Sync class.
In coming version of Tweetinvi (0.9.8.0) you will have access to a static class TSync.
With this class you will be able to execute any operation asynchronously without having to worry about ThreadSafe credentials.
Code you will be able to use in coming release :
Linvi
I have reconsidered my position over the static Sync class.
In coming version of Tweetinvi (0.9.8.0) you will have access to a static class TSync.
With this class you will be able to execute any operation asynchronously without having to worry about ThreadSafe credentials.
Code you will be able to use in coming release :
// simple thread task TSync.ExecuteTaskAsync(() => { var user = User.GetLoggedUser(); Console.WriteLine(user); }); // using await to join thread task and get resultvar user = await TSync.ExecuteTaskAsync(() => { return User.GetLoggedUser(); }); Console.WriteLine(user);