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