I need to migrate a WinForm Application to a Console Application.
In the WinForm Application, I have something like:
this.Invoke(new LogResponseCallback(this.LogResponse), new object[] { allAlarmsJson });
private delegate void LogResponseCallback(string text);
private void LogResponse(string response)
{
this._richTextResponse.Text = response + "\r\n";
}
Seems like Main Thread has been called after the processing of a certain operation.
My concern is how can the same Asynchronous delegate call can be achieved in the Console application.
Any help would be highly appreciated.
Thanks in advance