Example #1
0
        public DefaultAppImageStore(IAssetStore assetStore,
                                    IOptions <AssetOptions> options)
        {
            this.assetStore = assetStore;

            this.options = options.Value;
        }
Example #2
0
        public AssetQueryParser(IJsonSerializer jsonSerializer, ITagService tagService, IOptions <AssetOptions> options)
        {
            this.jsonSerializer = jsonSerializer;
            this.tagService     = tagService;
            this.options        = options.Value;

            edmModel = queryModel.ConvertToEdm("Squidex", "Asset");
        }
Example #3
0
        public AssetQueryParser(IJsonSerializer jsonSerializer, ITagService tagService, IOptions <AssetOptions> options)
        {
            this.jsonSerializer = jsonSerializer;

            this.tagService = tagService;

            this.options = options.Value;
        }
Example #4
0
        public AssetQueryParser(IJsonSerializer jsonSerializer, ITagService tagService, IOptions <AssetOptions> options)
        {
            Guard.NotNull(jsonSerializer);
            Guard.NotNull(options);
            Guard.NotNull(tagService);

            this.jsonSerializer = jsonSerializer;
            this.options        = options.Value;
            this.tagService     = tagService;
        }
Example #5
0
 public AssetQueryService(
     IAssetEnricher assetEnricher,
     IAssetRepository assetRepository,
     IAssetLoader assetLoader,
     IAssetFolderRepository assetFolderRepository,
     IOptions <AssetOptions> options,
     AssetQueryParser queryParser)
 {
     this.assetEnricher         = assetEnricher;
     this.assetRepository       = assetRepository;
     this.assetLoader           = assetLoader;
     this.assetFolderRepository = assetFolderRepository;
     this.options     = options.Value;
     this.queryParser = queryParser;
 }
Example #6
0
        public AssetList GetAssets(AssetOptions options)
        {
            var query = Utils.BuildQueryString(new List <KeyValuePair <string, object> >
            {
                new KeyValuePair <string, object>(nameof(options.PerPage).ToCamelCase(), options.PerPage),
                new KeyValuePair <string, object>(nameof(options.CreatedBy).ToCamelCase(), options.CreatedBy),
                new KeyValuePair <string, object>(nameof(options.Identifier).ToCamelCase(), options.Identifier),
                new KeyValuePair <string, object>(nameof(options.FromTimestamp).ToCamelCase(), options.FromTimestamp),
                new KeyValuePair <string, object>(nameof(options.ToTimestamp).ToCamelCase(), options.ToTimestamp),
                new KeyValuePair <string, object>(nameof(options.Page).ToCamelCase(), options.Page)
            });

            var assets = _request.GetRequest <AssetList>($"assets{query}");

            return(assets);
        }
Example #7
0
 public AssetsController(
     ICommandBus commandBus,
     IAssetQueryService assetQuery,
     IAssetUsageTracker assetStatsRepository,
     IAppPlansProvider appPlansProvider,
     IOptions <AssetOptions> assetOptions,
     IOptions <MyContentsControllerOptions> controllerOptions,
     ITagService tagService)
     : base(commandBus)
 {
     this.assetOptions         = assetOptions.Value;
     this.assetQuery           = assetQuery;
     this.assetStatsRepository = assetStatsRepository;
     this.appPlansProvider     = appPlansProvider;
     this.controllerOptions    = controllerOptions.Value;
     this.tagService           = tagService;
 }
 public AssetList GetAssets(AssetOptions options)
 {
     return(this._assets.GetAssets(options));
 }
Example #9
0
 public ScssProcessor(IOptions<AssetOptions> options)
 {
     _options = options.Options;
 }
 public SimpleJavascriptProcessor(IOptions<AssetOptions> options)
 {
     _options = options.Options;
 }