Conversion of the UWP app into a .NET Core app for portability. Requires .NET Core 2.0 and C# 7.1
23 lines
585 B
C#
23 lines
585 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace Test
|
|
{
|
|
class Program
|
|
{
|
|
static async Task Main(string[] args)
|
|
{
|
|
var servers = await ScreenLogicConnect.FindUnits.Find();
|
|
if (servers != null)
|
|
{
|
|
foreach (var server in servers)
|
|
{
|
|
var connection = new ScreenLogicConnect.UnitConnection();
|
|
await connection.ConnectTo(server);
|
|
var status = connection.GetPoolStatus();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|