public async Task <ContentProvider <TEntry> > GetContentAsync(TEntry entry, CancellationToken cancellationToken = default) { if (entry == null) { throw new ArgumentNullException(nameof(entry)); } var contentData = await store.GetContentDataAsync(entry, cancellationToken); if (contentData == null) { return(null); } var model = contentMetadataManager.ConvertDictionaryToContentModel(contentData); contentMetadataManager.ApplyInjections(model, services, true); return(ContentProvider <TEntry> .Create(entry, model, services)); }
private ContentProvider(ContentProvider <TEntry> parent, ContentExplorer contentExplorer) { Entry = parent.Entry; Services = parent.Services; Explorer = contentExplorer; }