Пример #1
0
            private async Task HandleContent(NetworkCollection col, CollectionModelWithLatestVersion c,
                                             CancellationToken ct, List <NetworkCollection> collections = null)
            {
                if (collections == null)
                {
                    collections = new List <NetworkCollection> {
                        col
                    }
                }
                ;
                var collectionSpecs = await ProcessEmbeddedCollections(c, collections, ct).ConfigureAwait(false);

                var modSpecs =
                    await
                    ProcessMods(col, c, await _collectionInfoFetcher.GetGame(col.GameId).ConfigureAwait(false))
                    .ConfigureAwait(false);

                col.ReplaceContent(modSpecs.Concat(collectionSpecs));
            }