예제 #1
0
        private static async Task MainLogic(CancellationToken ct)
        {
            // Main logic here
            await DA.InitializeDB();

            await DA.AddAnotherJalluToDBTest();

            NLogExtensions.InitializeLogConnection(ct, IPAddress.Parse("127.0.0.1"), 9999);

            var serviceLayer = new CommService();

            serviceLayer.Run(ct);

            var delayTask = Task.Delay(-1, ct);
            // Test.
            var bll = new BusinessLogic(serviceLayer, new RobotCell(), new DA());

            var done = await Task.WhenAny(delayTask);

            ct.ThrowIfCancellationRequested();
        }