0

How can I cancel Task<> from async methods in Dropbox C# SDK?
I don't see how I can set CancellationToken for them. I thought there is something like it in API methods:

public Task<Metadata> GetMetadataAsync(
    string path,
    bool includeMediaInfo = false,
    bool includeDeleted = false,
    bool includeHasExplicitSharedMembers = false,
    CancellationToken ct = null /*This is would be optional cancellation token. But this parameter doesn't exist in API*/
);

But can't find it. It would be good approach for cancel asynchronous operation.

4

1 Answer 1

0

Greg's answer:

The Dropbox API v2 .NET SDK doesn't support cancelling/cancellation tokens, but I'll be sure to pass this along as a feature request.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.