HubSpot.NET icon indicating copy to clipboard operation
HubSpot.NET copied to clipboard

async await support

Open EvgenyKhaliper opened this issue 6 years ago • 4 comments

Any plans for async / await in this package ?

EvgenyKhaliper avatar Oct 29 '19 09:10 EvgenyKhaliper

@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!

Psypher9 avatar Nov 19 '19 14:11 Psypher9

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.

jsauve avatar Dec 02 '19 19:12 jsauve

@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.

Psypher9 avatar Dec 05 '19 16:12 Psypher9

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.

jsauve avatar Dec 05 '19 16:12 jsauve