public async Task <SyncedFileInfo> GetSyncedFileInfo(string id, SyncTarget target, CancellationToken cancellationToken) { _logger.Debug("Getting synced file info for {0} from {1}", id, target.Name); var googleCredentials = GetGoogleCredentials(target); var url = await _googleDriveService.CreateDownloadUrl(id, googleCredentials, cancellationToken).ConfigureAwait(false); return(new SyncedFileInfo { Path = url, Protocol = MediaProtocol.Http, Id = id }); }