Пример #1
0
 public CategoriesController(ICategoriesStore categoriesStore, IImageHostingService imageHostingService,
                             NetBazaarDatabase netBazaarDatabase)
 {
     _categoriesStore     = categoriesStore;
     _imageHostingService = imageHostingService;
     _netBazaarDatabase   = netBazaarDatabase;
 }
Пример #2
0
 public PostingsController(IPostingsStore postingsStore, ICategoriesStore categoriesStore,
                           IImageHostingService imageHostingService, NetBazaarDatabase netBazaarDatabase,
                           IMongoDatabase netBazaarMongoDb)
 {
     _postingsStore       = postingsStore;
     _categoriesStore     = categoriesStore;
     _imageHostingService = imageHostingService;
     _netBazaarDatabase   = netBazaarDatabase;
     _netBazaarMongoDb    = netBazaarMongoDb;
 }
        public AzureImageHostingService(IImageReferencesStore imageReferencesStore, ICategoriesStore categoriesStore,
                                        IGeneralSettingsCache generalSettingsCache)
        {
            var storageAccount = CloudStorageAccount.Parse(
                ConfigurationManager.AppSettings["StorageConnectionString"]);

            _cloudBlobClient = storageAccount.CreateCloudBlobClient();

            _imageReferencesStore = imageReferencesStore;

            _categoriesStore = categoriesStore;

            _generalSettingsCache = generalSettingsCache;
        }
Пример #4
0
 public CategoriesController(ICategoriesStore categoriesStore)
 {
     _categoriesStore = categoriesStore;
 }