Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static async void ProcessFileAsync(FileInfo file)
- {
- try
- {
- Task task = Task.Run(() => ProcessFile(file));
- await task;
- }
- catch (Exception e)
- {
- Console.WriteLine($"\r\n{e.Message}\r\n{e}");
- throw;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement