Microsoft.OneDrive.Sdk.Helpers.ChunkedUploadProvider.DeleteSession C# (CSharp) Method

DeleteSession() public method

Delete the session.
public DeleteSession ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task DeleteSession()
        {
            var request = new UploadSessionRequest(this.Session, this.client, null);
            await request.DeleteAsync();
        }

Usage Example

 /// <inheritdoc/>
 public async Task CancelSessionAsync()
 {
     if (_uploadProvider != null)
     {
         await _uploadProvider.DeleteSession();
     }
 }