// This method gets called by the runtime.
 // Use this method to add services to the container.
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddBookStore(Configuration, _loggerFactory);
     services.AddBookDetailLookup(Configuration.GetOrThrow("GOOGLE_PROJECT_ID"));
     services.AddAntiforgery();
     services.AddMvc();
 }
 // This method gets called by the runtime.
 // Use this method to add services to the container.
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddBookStore(Configuration, _loggerFactory);
     var bookDetailLookup = new BookDetailLookup(
         Configuration.GetOrThrow("GOOGLE_PROJECT_ID"), _loggerFactory);
     bookDetailLookup.StartPullLoop(
         services.BuildServiceProvider().GetService<IBookStore>(),
         new CancellationTokenSource().Token);
 }