public PostsService(PostsContext postsContext) { this.postsContext = postsContext; InstagramFetchService.NewData += async(_, newData) => { await UpdateNewDataAsync(newData); }; }
public InstagramFetchService(PostsContext context, IOptions <InstagramOptions> options) { this.context = context; this.options = options.Value; }