dotnet / dotnet/wcf

Add contract support for IAsyncEnumerable for streamed mode transfer

Open
#4,166 0 comments 3 reactions 0 assignees View on GitHub
feature request
Dominant language
C#
Stars
1.8k
Forks
576
Avg merge
6d 9h
Merged PRs (30d)
2

Description

Currently when using streamed transfer mode, you can return an IEnumerable and WCF will return a new item as it arrives from the network. This results in a thread blocking waiting on MoveNext() waiting for the next item. WCF should support IAsyncEnumerable in this scenario so that a thread isn't being blocked waiting for the next item from the network.
We also support passing a single parameter to an operation which is of type IEnumerable and WCF will read items from this and serialize it one item at a time and send to the service. We should also support asynchronously reading from a passed IAsyncEnumerable.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.