public MediaService( IMediaRepository <TMedia> mediaRepository, IAbpStorageFactory storageFactory) { _mediaRepository = mediaRepository; _store = storageFactory.GetStore(DefaultStoreName); }
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); }
public FileSystemStorage_Tests() { _storageFactory = GetRequiredService <IAbpStorageFactory>(); }
public MediaService(IMediaRepository mediaRepository, IAbpStorageFactory storageFactory) { _mediaRepository = mediaRepository; _mediaStore = storageFactory.GetStore(HitCommerceConsts.DefaultMediaStoreName); }
public StorageFactory_Tests() { _storageFactory = GetRequiredService <IAbpStorageFactory>(); }
public AbpStoreBase(string storeName, IAbpStorageFactory storageFactory) { _store = storageFactory.GetStore(storeName); }