Example #1
0
 public MediaService(
     IMediaRepository <TMedia> mediaRepository,
     IAbpStorageFactory storageFactory)
 {
     _mediaRepository = mediaRepository;
     _store           = storageFactory.GetStore(DefaultStoreName);
 }
Example #2
0
        public AbpStoreProxy(IAbpStorageFactory factory, IOptions <TOptions> options)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options),
                                                "Unable to build generic Store. Did you forget to configure your options?");
            }

            _innerStore = factory.GetStore(options.Value.Name, options.Value);
        }
Example #3
0
 public MediaService(IMediaRepository mediaRepository, IAbpStorageFactory storageFactory)
 {
     _mediaRepository = mediaRepository;
     _mediaStore      = storageFactory.GetStore(HitCommerceConsts.DefaultMediaStoreName);
 }
Example #4
0
 public AbpStoreBase(string storeName, IAbpStorageFactory storageFactory)
 {
     _store = storageFactory.GetStore(storeName);
 }