UpdateSessionStatusAsync() public method

Get the status of the session. Stores returned session internally. Updates internal list of ranges remaining to be uploaded (according to the server).
public UpdateSessionStatusAsync ( ) : Task
return Task
        /// <inheritdoc/>
        public async Task <long> GetUploadStatusAsync()
        {
            if (_uploadProvider != null && IsUploadCompleted == false)
            {
                if (Provider.AuthenticationProvider is MsaAuthenticationProvider)
                {
                    var remainingRequests = _uploadProvider.GetUploadChunkRequests();
                    var firstChunck       = remainingRequests.First <OneDriveSdk.UploadChunkRequest>();
                    var status            = await _uploadProvider.UpdateSessionStatusAsync();

                    return(firstChunck.RangeBegin);
                }
            }

            // no more data
            return(0);
        }