public BackgroundController(ProductJsonConverter productJsonConverter, IFileCache fileCache, IConfiguration configuration, ImageLoader imageLoader)
 {
     _productJsonConverter = productJsonConverter;
     _fileCache            = fileCache;
     _configuration        = configuration;
     _imageLoader          = imageLoader;
     _itemHandlerFactory   = new ItemHandlerFactory(_configuration, _fileCache, null, _imageLoader, null, null);
 }
Exemplo n.º 2
0
        public StateController(
            IStateFileSerializer stateFileSerializer,
            ProductJsonConverter productJsonConverter,
            ITemplateParser templateParser,
            ProductHandler productHandler)
        {
            _stateFileSerializer  = stateFileSerializer;
            _productJsonConverter = productJsonConverter;
            _productHandler       = productHandler;
            _templateParser       = templateParser;

            _statesFolderPath = HostingEnvironment.MapPath(_statesFolder);

            if (!Directory.Exists(_statesFolderPath))
            {
                Directory.CreateDirectory(_statesFolderPath);
            }
        }
 public GenerateController(ProductJsonConverter productJsonConverter)
 {
     _productJsonConverter = productJsonConverter;
 }
 public TemplateController(ITemplateConverter converter, ProductJsonConverter jsonConverter)
 {
     _templateConverter    = converter;
     _productJsonConverter = jsonConverter;
 }
Exemplo n.º 5
0
 public SafetyLinesController(ProductJsonConverter productJsonConverter)
 {
     _productJsonConverter = productJsonConverter;
 }