I'm not sure if this is a SignalR problem or async / await problem. When my client application (WPF) starts up, it does some initialization: -
public async void Initialise()
{
var data = await _hubProxy.Invoke<FooData>("Method1");
_dataProcessor.ProcessData(data);
}
_dataProcessor - this is a helper class that executes some data with the data passed to it, and then at some point calls another server method using a line similar to: -
var moreData = _hubProxy.Invoke<BarData>("Method2").Result;
None of the classes in the helper class are asynchronous.
( Initialise()) - -. invoke - , , . , , - .
, async/wait Initialise(), . ? -?
( , async void, Initialise() - " ", , ).