private async Task MapExistingCollection(CollectionModelWithLatestVersion rc, SubscribedCollection collection, CancellationToken ct) { var userId = await _collectionInfoFetcher.GetUserId().ConfigureAwait(false); var conv = rc.MapTo(collection, opts => opts.Items["user-id"] = userId); // TODO: Allow parent repos to be used for children etc? :-) await HandleContent(conv, rc, ct).ConfigureAwait(false); conv.UpdateState(); }
private async Task MapExistingCollection(CollectionModelWithLatestVersion rc, SubscribedCollection collection, CancellationToken ct) { var userId = await GetUserId().ConfigureAwait(false); var conv = rc.MapTo(collection, opts => opts.Items["user-id"] = userId); // TODO: Allow parent repos to be used for children etc? :-) await HandleContent(conv, rc, ct).ConfigureAwait(false); conv.UpdateState(); }