Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to intercept IAsyncEnumerable #226

Open
gentledepp opened this issue Dec 7, 2023 · 0 comments
Open

Allow to intercept IAsyncEnumerable #226

gentledepp opened this issue Dec 7, 2023 · 0 comments

Comments

@gentledepp
Copy link

Hi!

this project is used (among others) in abp.io and is used for client side http-proxy creation based on interfaces.

The poblem I am having is that I would like to "stream" data from the server to the client.
I.e. I would like to return an
IAsyncEnumerable<WeatherInfo> GetCurrentWeather(string region)

Unfortunately, Castle.DynamicProxy.AsyncInterceptorBase seems to not recognize the return type IAsyncEnumerable<T> and thus calls ProceedSynchronous[IAsyncEnumerable'1]

image

I am not too proficient in using Castle DynamicProxy, but if you give me some hints I am willing to try to contribute this as PR!

Any thoughts?

gentledepp added a commit to gentledepp/Castle.Core.AsyncInterceptor that referenced this issue Dec 7, 2023
gentledepp added a commit to gentledepp/Castle.Core.AsyncInterceptor that referenced this issue Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant