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
linq2db Configuration.ContinueOnCapturedContext #1859
Comments
May be it's possible to make changes at readme to recommend using ContinueOnCapturedContext = false. |
well, I'm a bit lost here as it shouldn't change existing behavior because |
May be you should remind about it at readme. It's really big problem. We've lost a day to found problem. |
First of all I need to understand why it is a problem, because this change shouldn't change linq2db behavior at all |
We are caching Task with result from db. Requests are attached to context and they never ends. After some time iis starts sending 503 https://msdn.microsoft.com/en-us/magazine/jj991977.aspx?f=255&MSPPError=-2147217396 Microsoft recomendations for example. |
It's not about change. We've started to cache some days ago. |
Ahh, now it makes sense. I thought we broke something with this change. Will make notes to readme in this case |
Answering your question in first message: we use it because it is default behavior for await and we don't want to break users who rely on it. This new option was added for cases like yours to override this behavior |
Added to FAQ, will be up soon |
I 'm wondering why you are using Configuration.ContinueOnCapturedContext = true. it's used in ConfigureAwait. We have a lot of issues with awaiting cached tasks. It locks our iis.
The text was updated successfully, but these errors were encountered: