Invoking Delegate in a Console Application
问题 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