Good day! I ask for help from the expert community.
We need a template (sample code) to solve the following problem:
Some long-term task is being performed asynchronously, the intermediate results of which are displayed in the GUI and when some controls of the same form change, new values fall into the asynchronously started method (running in a stream other than the GUI thread).
There are plenty of examples for the first part of the task (displaying intermediate results), but I did not find the data transfer from the GUI to the method asynchronously found.
Tools: MS VISUAL C #, WINFORMS application. For the organization of asynchrony isp. Async / await construction
Thank you in advance.