title: C# Fire and forget for WPF application logs, handle exit before answer
body: <p>I have an application that should send a log when it exits to a cloud function. This means it can take a long time to get an answer if I'm unlucky (sometimes minutes!). I don't want my application to stay in the background for that long so I just want to fire and forget the log message. I don't need 100% guarantees, but as close as possible is of course nice.</p>
  
  <p>What's the best method to achieve this?
  I've read the answers to <a href="https://stackoverflow.com/questions/36335345/web-api-fire-and-forget">this question</a>, but it's aimed at ASP.Net applications. Is this still applicable for a WPF application that exits and disappears, potentially before there will ever be an answer from the server, or are there better ways in this case?</p>
  
  <p>Thanks!</p>