Files
dotnet-screenlogic/Test/Program.cs
Parnic 97c4febdf5 Initial commit
Conversion of the UWP app into a .NET Core app for portability. Requires .NET Core 2.0 and C# 7.1
2018-03-18 23:04:19 -05:00

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;
}
}
}
}
}