I am working on the handler and want to save directly to a sql table and not save to disk at all. The problem is the file is streamed in chunks and continually goes back and forth between the xaml file and the handler. I need to get an id from the sql table in the
IsNewFileRequest() and then pass it to the xaml page and back again on each 100k chunk so I can add to the data stored in the database. I see no way to do this in ProgressChanged. the only event I have access to data coming from the handler is in
FileUploaded where I can access the dictionary in FileUploaded.
How can I persist the id in the handler throughout the whole upload process so I can add to the sql data on each pass?