示例#1
0
 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;
 }