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.
What's the best method to achieve this? I've read the answers to this question, 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?
Thanks!