branchRust.ServerManager/upload_map_pngcancel
18 Commits over 62 Days - 0.01cph!
remove unneeded 5min delay on TryUploadMapImage
Revert "Simplify file uploading to not use MultipartFormDataContent"
This reverts commit b0c590aaca7163ea0b4ffe6a0b1d4eb46b2d2e50.
Simplify file uploading to not use MultipartFormDataContent
Attempt to delete the map png file if loading failed - edge case
Use Timeout.InfiniteTimeSpan instead for clarity
Maker timer run at TimeSpan.MaxValue interval
Fix endpoint naming. Run 5 mins after server start (from 10). Fix MemoryStream getting disposed. Change scope of filestream so we can delete the file when we're done. Read responses as string, not json.
Change to use new renamed mapImageExists endpoint and log the url if it does already exist
Upload map image to files.facepunch.com via the publicapi and retrieve the url
Use cancellation token in HttpResponseMessage.EnsureSucessful
ask the backend if this server key/wipeid already has a map uploaded, if so, early exit
minor changes and comments
▅▅▍▉█ ▌▌▆█▉█▊▌▉▌▉▆▅█▅▇▋▉▊▉▌▊▇▊█▍▇ ▉▅▍█▊▌█▄▆▄ ▌█▄ ▉▌▊ ▌▆
▊▆▍▍▄▆█▋▄.█▅▆▋▍▋ -> ▊▍▇▇.▄▍▄▄▉▆
▍▄▇ ▍█▋▍ ▊▊ ▅▉███ ▅▅▆▍▉▅.▆▅▆▌█▌▄▅▄█▉ ▆▅▇ ▅▅▍ ▋▅███ ▄▍▋▆ ▆▅▌▅▇▉▉▉▆▌▋▉ █▉▋▌▊ ▅▉▇▆▅.▆▄▆▉▌▄▋▋▄