public JsonProductFormatter( IJsonProductService jsonProductService, IContentDefinitionService contentDefinitionService, ISettingsService settingsService, IProductContentResolver productContentResolver, IHttpContextAccessor httpContextAccessor, IActionContextAccessor actionContextAccessor ) { _jsonProductService = jsonProductService; _contentDefinitionService = contentDefinitionService; _settingsService = settingsService; _productContentResolver = productContentResolver; _httpContext = httpContextAccessor?.HttpContext; _actionContext = actionContextAccessor?.ActionContext; }
public JsonSchemaFormatter(IJsonProductService jsonProductService, IHttpContextAccessor httpContextAccessor) { _jsonProductService = jsonProductService; _httpContext = httpContextAccessor.HttpContext; }