I am trying to download/upload files from/to OneDrive with this bit of code
var contentStream = await ODC .Drive .Items[it.Id] .Content .Request() .GetAsync();.
ODC being my OneDriveClient that I need to authenticate with await msaAuth.AuthenticateUserAsync(); this bit of code- but when my program gets to the authentication line a window pops up when disappears and the function that the authentication line is in 'breaks', the program continues but no lines after the auth line are executed.
I'm not sure about the how and why of this and was hoping to get some assistance on the matter
I am trying to download/upload files from/to OneDrive with this bit of code
var contentStream = await ODC .Drive .Items[it.Id] .Content .Request() .GetAsync();
. ODC being my OneDriveClient that I need to authenticate withawait msaAuth.AuthenticateUserAsync();
this bit of code- but when my program gets to the authentication line a window pops up when disappears and the function that the authentication line is in 'breaks', the program continues but no lines after the auth line are executed.I'm not sure about the how and why of this and was hoping to get some assistance on the matter