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 <SubscribedCollection> MapCollection(CollectionModelWithLatestVersion rc, CancellationToken ct, List <NetworkCollection> collections = null) { var userId = await _collectionInfoFetcher.GetUserId().ConfigureAwait(false); var conv = rc.MapTo <SubscribedCollection>(opts => opts.Items["user-id"] = userId); // TODO: Allow parent repos to be used for children etc? :-) await HandleContent(conv, rc, ct, collections).ConfigureAwait(false); conv.UpdateState(); return(conv); }
private async Task<SubscribedCollection> MapCollection(CollectionModelWithLatestVersion rc, CancellationToken ct, List<NetworkCollection> collections = null) { var userId = await GetUserId().ConfigureAwait(false); var conv = rc.MapTo<SubscribedCollection>(opts => opts.Items["user-id"] = userId); // TODO: Allow parent repos to be used for children etc? :-) await HandleContent(conv, rc, ct, collections).ConfigureAwait(false); conv.UpdateState(); return conv; }
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(); }