-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Use Begin/End pattern to not break .Net 4 compatibility. #491
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
Conversation
CefSharp/Internals/IRenderProcess.cs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented out Contract
|
I'm wondering if it's worth detecting the As per http://msdn.microsoft.com/en-us/library/hh925568%28v=vs.110%29.aspx we can check the registry to see what version is installed. (There is a fairly simple example near the bottom of the page) Idea raises a couple of questions
Thoughts? |
|
Would there be any benefits of the Task<> approach over Begin/End performance-wise? |
|
Unsure about the perf benefits, it just seems a step backwards! It just offends my sense of aesthetics! lol I'm probably over thinking it 😄 |
|
:) |
|
@amaitland I agree, it looks awful :( |
|
hi guys why do we need this ? task is .net 4.0 compatible you just need to use continue on the task instead of await. did i miss something ? |
|
@JanEggers Apparently it's a Task/WCF thing in pure .Net 4.0. The error reported is in #490
More suggestions on solutions are most welcome 😄 |
|
ouch i wasnt aware of that. no idea on my side |
|
We can still use Task, just have to wrap old style Looks ugly, it's a viable solution though. Can always improve it later if someone comes up with a brilliant idea. |
|
I have reviewed this, I'll make one minor formatting change after it's merged, apart from that thanks for the fantastic contribution @bjarteskogoy merging now 😄 |
Use Begin/End pattern to not break .Net 4 compatibility.
No description provided.