Skip to content

Streaming endpoint with C# client #2634

Answered by elliotzh
CyrilMercier00 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @CyrilMercier00 there should be a different interface to read the streaming response in C#. Could you please have a try?

var response = await client.SendAsync(message, HttpCompletionOption.ResponseHeadersRead);
var stream = await response.Content.ReadAsStreamAsync();

ref: link

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@brynn-code
Comment options

@CyrilMercier00
Comment options

@brynn-code
Comment options

@elliotzh
Comment options

Answer selected by CyrilMercier00
@CyrilMercier00
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants