示例#1
0
 /// <summary>
 /// Gets all running transfers for a given resource, e.g. for aborting running
 /// transfers before deleting or modifying a resource.
 /// </summary>
 /// <param name="virtualFilePath">The identifier of the resource.</param>
 public IEnumerable <DownloadToken> GetTransfersForResource(string virtualFilePath)
 {
     return(SecureFunc(FileSystemTask.DownloadTransfersByResourceQuery,
                       () => ReaderService.GetTransfersForResource(virtualFilePath),
                       () => String.Format("Could not get running downloads for file [{0}].", virtualFilePath)));
 }