We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like use it in console and not async/await, how can I post/get in generic way? Thanks
The text was updated successfully, but these errors were encountered:
@neonleo You can use async main method after c# 7.1. https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-7.1/async-main
If you use c# ~v7.0, you can wrap mainasync method.
public static void Main() { MainAsync().GetAwaiter().GetResult(); } private static async Task MainAsync() { ... var response = await odata.SendAsync(...); }
And you can also use Task.Result.
Task.Result
public static void Main() { ... var response = await odata.SendAsync(...).Result; }
Sorry, something went wrong.
Thank you‼
No branches or pull requests
I would like use it in console and not async/await, how can I post/get in generic way?
Thanks
The text was updated successfully, but these errors were encountered: