Exemplo n.º 1
0
 public HypernovaClient(ILogger logger, IHostingEnvironment env, IHttpClientFactory httpClientFactory, IOptions <HypernovaSettings> options, string siteUrl)
 {
     _logger            = logger ?? throw new ArgumentNullException(nameof(logger));
     _env               = env ?? throw new ArgumentNullException(nameof(env));
     _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory));
     _options           = options;
     _settings          = options.Value;
     _siteUrl           = siteUrl;
 }
Exemplo n.º 2
0
        public SpaSsr(ILogger logger, IHostingEnvironment env, IHttpClientFactory httpClientFactory, IOptions <HypernovaSettings> options, IDistributedCache cache, String siteUrl)
        {
            _logger            = logger;
            _env               = env;
            _httpClientFactory = httpClientFactory;
            _settings          = options.Value;
            _cache             = cache;
            _siteUrl           = siteUrl;

            _hypernovaClient = new HypernovaClient(logger, env, httpClientFactory, options, siteUrl);
        }