Hello,
I'm using the sample resolver code to determine the return type of a method:
var context = new CSharpContextFactory().CreateContext(...);
var resultSet = context.Resolve();
...
I update the project resolver using the following call as the user updates the code within the syntax editor:
project.SourceFiles.QueueCode(...);
This correctly updates the resolver to reflect any changes the user has made (as seen in the mouse-over info and intelliprompt list). My problem is that I need to resolve the code immediately after calling ...QueueCode(...), and it appears that the QueueCode works on a background thread, so my context.Resolve happens before the resolver has been updated (and therefore fails).
How can I determine when the QueueCode / Resolver update has finished?
Thanks.
I'm using the sample resolver code to determine the return type of a method:
var context = new CSharpContextFactory().CreateContext(...);
var resultSet = context.Resolve();
...
I update the project resolver using the following call as the user updates the code within the syntax editor:
project.SourceFiles.QueueCode(...);
This correctly updates the resolver to reflect any changes the user has made (as seen in the mouse-over info and intelliprompt list). My problem is that I need to resolve the code immediately after calling ...QueueCode(...), and it appears that the QueueCode works on a background thread, so my context.Resolve happens before the resolver has been updated (and therefore fails).
How can I determine when the QueueCode / Resolver update has finished?
Thanks.