示例#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;
 }
 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();
        }