Exemplo n.º 1
0
        private async Task UploadFile(Migo migo, string fileName, CancellationTokenSource cts)
        {
            var result = await migo.UploadGCodeFile(fileName)
                         .ConfigureAwait(false);

            var json = JsonSerializer.Serialize(result);

            Log.Information(json);

            cts.Cancel();
        }
Exemplo n.º 2
0
 private async Task UploadFile()
 {
     await _migo.UploadGCodeFile(GCodeFile)
     .ConfigureAwait(false);
 }