iron_dotnet icon indicating copy to clipboard operation
iron_dotnet copied to clipboard

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

Open grcodemonkey opened this issue 9 years ago • 1 comments

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();

grcodemonkey avatar Apr 11 '15 16:04 grcodemonkey

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.

treeder avatar Apr 23 '15 17:04 treeder