Beispiel #1
0
 private void OnLoaded(object sender, RoutedEventArgs e)
 {
     HttpServer   server      = new RestAPI(80);
     IAsyncAction asyncAction = Windows.System.Threading.ThreadPool.RunAsync(
         (workItem) =>
     {
         server.StartServer();
     });
     GpioMonitor  monitor           = new GpioMonitor();
     IAsyncAction secondAsyncAction = Windows.System.Threading.ThreadPool.RunAsync(
         (workItem) =>
     {
         monitor.Start();
     });
     //monitor.Start();
 }
 private void OnLoaded(object sender, RoutedEventArgs e)
 {
     HttpServer server = new RestAPI(80);
     IAsyncAction asyncAction = Windows.System.Threading.ThreadPool.RunAsync(
         (workItem) =>
         {
             server.StartServer();
         });
     GpioMonitor monitor = new GpioMonitor();
     IAsyncAction secondAsyncAction = Windows.System.Threading.ThreadPool.RunAsync(
         (workItem) =>
         {
             monitor.Start();
         });
     //monitor.Start();
 }