Wrap a synchronous function in Asynchronous call c#
问题 I have a server, which must poll an equipment through the network, to obtain information, process it and then send it to the users. The equipment survey becomes a synchronous blocking function. My question is: How to create an own asynchronous function version to perform this function using Task or another asynchronous pattern??? Consider the following code to get information from equipment: IEnumerable<Logs> GetDataFromEquipment(string ipAddress) { Equipment equipment = new Equipment(); /