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