hubspot-net / HubSpot.NET

C# .NET Wrapper around the common HubSpot APIs.
MIT License
112 stars 137 forks source link

async await support #57

Open EvgenyKhaliper opened 4 years ago

EvgenyKhaliper commented 4 years ago

Any plans for async / await in this package ?

Psypher9 commented 4 years ago

@EvgenyKhaliper, thanks for your issue. We do hope to support asynchronous flows as a library, however it may not be released soon. We would welcome any PRs to help us get there though!

jsauve commented 4 years ago

It would be wise for HubSpot to leverage ReFit in order to make its library client async/await: https://github.com/reactiveui/refit C# devs these days expect aync/await. ReFit makes it easy to develop an async/await lib against any ReST API, and makes access to your API much more performant than a synchronous library. Just my two cents.

Psypher9 commented 4 years ago

@jsauve Thank you for your comment. Just to be clear, HubSpot.NET is not an official HubSpot project. Rather we are a community initiative to provide a .NET client SDK to developers integrating with HubSpot. We look to fully support asynchronous workflows in the future. We just haven't been able to yet. I'd be more than happy to entertain PRs in this direction though.

jsauve commented 4 years ago

Ahh! Sorry! Didn't realize this wasn't official! I just got started with HubSpot this week, so I've been poking around.

I'll be needing to make some calls from within my C# API, so I'll definitely be using ReFit to build up a HubSpot client. I'll post a link to a repo when I get started with that.