예제 #1
0
 public DiProxy(
     IPlacesService placesService
     , SessionOperator sessionOperator
     , IObjectTypesService objectTypesService
     , IObjectsService objectsService
     , ILocalizationService localeService
     , IMapper mapper
     , ILocalizer localizer
     , IAdsService adsService
     , IFilesService filesService
     , ConfigValuesCollection configValues
     , IUserInfoService userInfoService)
 {
     _elements.Add(typeof(IPlacesService), placesService);
     _elements.Add(typeof(SessionOperator), sessionOperator);
     _elements.Add(typeof(IObjectTypesService), objectTypesService);
     _elements.Add(typeof(IObjectsService), objectsService);
     _elements.Add(typeof(ILocalizationService), localeService);
     _elements.Add(typeof(IMapper), mapper);
     _elements.Add(typeof(ILocalizer), localizer);
     _elements.Add(typeof(IAdsService), adsService);
     _elements.Add(typeof(IFilesService), filesService);
     _elements.Add(typeof(ConfigValuesCollection), configValues);
     _elements.Add(typeof(IUserInfoService), userInfoService);
 }
예제 #2
0
 public Localizer(ILocalizationService localeAndTranslationService,
                  IObjectTypesService objectTypesService,
                  IObjectsService objectsService)
 {
     _objectsService              = objectsService;
     _objectTypesService          = objectTypesService;
     _localeAndTranslationService = localeAndTranslationService;
 }
예제 #3
0
 public FilesService(IMapper mapper,
                     IFilesStorage filesStorage,
                     IFilesInfoStorage filesInfoStorage,
                     IObjectTypesService objectTypesService,
                     IObjectsService objectsService)
 {
     _mapper             = mapper;
     _filesBinaryStorage = filesStorage;
     _filesInfoStorage   = filesInfoStorage;
     _objectTypesService = objectTypesService;
     _objectsService     = objectsService;
     _imgConvUtil        = new ImagesConversionUtil();
 }
예제 #4
0
        public AdsService(IMapper mapper, IAdsStorage adsStorage, IPlacesService placesService,
                          IObjectTypesService objectTypesService, IObjectsService objectsService,
                          IFilesService filesService)
        {
            _mapper             = mapper;
            _adsStorage         = adsStorage;
            _cache              = new AdsServiceCache();
            _placesService      = placesService;
            _objectsService     = objectsService;
            _objectTypesService = objectTypesService;
            _filesService       = filesService;

            _allAdsLock = new object();
        }
 public ObjectController(IObjectsService objectsService)
 {
     _objectsService = objectsService;
 }
예제 #6
0
 public ProductQuantitiesService(IGoodsService goods, IStoreService store, IGoodGroupsService goodGroups, IObjectsService objectsService, IFlagService flagService)
 {
     _flagService           = flagService;
     this.Goods             = goods;
     this.ObjectsService    = objectsService;
     this.GoodGroups        = goodGroups;
     this.Store             = store;
     _publicHighCostVisible = flagService.GetFlagValue(FlagType.ShowOnlyHighCostGroups);
 }