iron-io / iron_dotnet

MIT License
18 stars 8 forks source link

API methods should support the awaitable Task based Async/Await keywords #38

Open grcodemonkey opened 9 years ago

grcodemonkey commented 9 years ago

var message = await mqClient.GetAsync();

In the original IronSharp project, the API is currently only supporting awaitable calls.

If we wanted to support the possible call models (Async, Sync, FireAndForget), I thought of an idea of doing something like:

IronTask postTask = mqClient.Post(...params...);

var syncResult = postTask .Send();

var asycResult = await postTask.SendAsync();

postTask.FireAndForget();
treeder commented 9 years ago

Hey @grcodemonkey , sounds like a good idea to me. What do you think about merging the two repos and we'll add you as a committer? So we can all work off the same code.