public LightcoreApiItemProvider(IOptions<LightcoreOptions> options) { _serializer = new JsonSerializer(); _config = options.Value; _client = new HttpClient(new HttpClientHandler { AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate }); _client.DefaultRequestHeaders.UserAgent.ParseAdd("Lightcore"); }
public LightcoreApiItemProvider(IOptions <LightcoreOptions> options) { _serializer = new JsonSerializer(); _config = options.Value; _client = new HttpClient(new HttpClientHandler { AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate }); _client.DefaultRequestHeaders.UserAgent.ParseAdd("Lightcore"); }
public StartupArgs(HttpContext httpContext, IItemProvider itemProvider, LightcoreOptions options) { HttpContext = httpContext; Options = options; ItemProvider = itemProvider; }
public RequestArgs(HttpContext httpContext, IItemProvider itemProvider, LightcoreOptions options) { HttpContext = httpContext; Options = options; ItemProvider = itemProvider; }
public ItemUrlService(IOptions <LightcoreOptions> options) { _options = options.Value; }
public StartupPipeline(IItemProvider itemProvider, IOptions <LightcoreOptions> options) { _itemProvider = itemProvider; _options = options.Value; }
public ItemUrlService(IOptions<LightcoreOptions> options) { _options = options.Value; }