Cancellation token cancelToken is ignored by EnumerateDirectory implementation, although the underlying implementation of Core.ListStatusAsync supports it.
I would propose passing the token down to the REST call wrapper.
internal IEnumerable<DirectoryEntry> EnumerateDirectory(string path, int maxEntries, string listAfter, string listBefore, UserGroupRepresentation userIdFormat = UserGroupRepresentation.ObjectID, CancellationToken cancelToken = default(CancellationToken))
{
if (string.IsNullOrEmpty(path))
{
throw new ArgumentException("Path is null");
}
return new FileStatusOutput<DirectoryEntry>(listBefore, listAfter, maxEntries, userIdFormat, this, path);
}
Cancellation token
cancelToken
is ignored byEnumerateDirectory
implementation, although the underlying implementation ofCore.ListStatusAsync
supports it.I would propose passing the token down to the REST call wrapper.