Esempio n. 1
0
        public CatalogContextSeed(HttpClient httpClient, IOptionsMonitor <GoogleApiOptions> options, CatalogContext ctx)
        {
            apiOptions = options.CurrentValue;

            httpClient.BaseAddress = new Uri(apiOptions.BaseUrl);
            httpClient.DefaultRequestHeaders.Add("Accept", "application/json");

            client   = httpClient;
            this.ctx = ctx;
        }