public async void RunReceiver() { await receiver.AcceptConnection(); tokenSource = new CancellationTokenSource(); recieverTask = Task.Run((Action)ReceiveMessages, tokenSource.Token); }
public async void RunReceiver() { await receiver.AcceptConnection(); tokenSource = new CancellationTokenSource(); recieverTask = Task.Run((Action)ReceiveMessages, tokenSource.Token); }