You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@danielpastoor just to check whether I understand your request:
You want to be able to return an IAsyncEnumerable from a controller action and have support that the same way it does for IEnumerable (i.e. query processing with EnableQuery, OData result serialization, etc.), right?
Ideally it would work the same as returning IQueryable where the select, filter etc applies to the returned results. And if there are no results post OData filtering then send nothing. This would be useful for streaming data changes, where the client decides how they want their data filtered/shaped.
I do think this would only support a subset though, as things like aggregations wouldn't make sense.
Activity
habbes commentedon Apr 25, 2023
@danielpastoor just to check whether I understand your request:
You want to be able to return an
IAsyncEnumerablefrom a controller action and have support that the same way it does forIEnumerable(i.e. query processing withEnableQuery, OData result serialization, etc.), right?danielpastoor commentedon Apr 30, 2023
Yes that is right
radderz commentedon Oct 25, 2023
Ideally it would work the same as returning IQueryable where the select, filter etc applies to the returned results. And if there are no results post OData filtering then send nothing. This would be useful for streaming data changes, where the client decides how they want their data filtered/shaped.
I do think this would only support a subset though, as things like aggregations wouldn't make sense.
danielpastoor commentedon Nov 2, 2023
It is already implemented in the asp.net core variant:
OData/AspNetCoreOData@fa81478