Beispiel #1
0
        public async void Download()
        {
            Downloading = true;
            StateHasChanged();
            var now      = DateTime.Now.ToString("yyyy_MM_ddd_HH_mm_ss");
            var filename = $"{now}_sorted_log.txt";
            await Task.Delay(1000);

            await JsRuntime.SaveAs(filename, Encoding.ASCII.GetBytes(Parser.GetSortedProjectData()));

            Downloading = false;
            StateHasChanged();
        }