Esempio n. 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;
 }
Esempio n. 2
0
 public JsonSchemaFormatter(IJsonProductService jsonProductService, IHttpContextAccessor httpContextAccessor)
 {
     _jsonProductService = jsonProductService;
     _httpContext        = httpContextAccessor.HttpContext;
 }