コード例 #1
0
ファイル: PostController.cs プロジェクト: cong1389/KuteShop
        public PostController(
            IPostService postService
            , IMenuLinkService menuLinkService
            , IAttributeValueService attributeValueService
            , IGalleryService galleryService
            , IImageService imageService
            , IAttributeService attributeService
            , ILanguageService languageService
            , ILocalizedPropertyService localizedPropertyService
            , IPostGalleryService postGalleryService
            , IGenericControlService genericControlService
            , ICacheManager cacheManager
            , IManufacturerService manufacturerService
            , IOrderItemService orderItemService
            , ISettingService settingService)
            : base(cacheManager)
        {
            _postService              = postService;
            _menuLinkService          = menuLinkService;
            _attributeValueService    = attributeValueService;
            _galleryService           = galleryService;
            _imageService             = imageService;
            _attributeService         = attributeService;
            _languageService          = languageService;
            _localizedPropertyService = localizedPropertyService;
            _postGalleryService       = postGalleryService;
            _manufacturerService      = manufacturerService;
            _orderItemService         = orderItemService;
            _settingService           = settingService;

            //Clear cache
            cacheManager.RemoveByPattern(CachePostKey);
        }
コード例 #2
0
 public CouncilService(MYBContext mybContext, IContactService contactService, IAttributeService attributeService, IPersonService personService)
 {
     db = mybContext;
     this.contactService   = contactService;
     this.attributeService = attributeService;
     this.personService    = personService;
 }
コード例 #3
0
 public LookupController(
     IRepository <Point> pointRepository,
     IRepository <MeterEvent> meterEventRepository,
     ISiteService siteService,
     ISecurityGroupService securityGroupService,
     IMeterService meterService,
     IUserService userService,
     IAttributeService attributeService,
     ITechnicianService technicianService,
     ITeamService teamService,
     IItemService itemService,
     IAssetService assetService,
     IWorkOrderService workOrderService,
     ILocationService locationService,
     IStoreService storeService,
     IServiceRequestService serviceRequestService,
     ICompanyService companyService)
 {
     this._pointRepository       = pointRepository;
     this._meterEventRepository  = meterEventRepository;
     this._siteService           = siteService;
     this._securityGroupService  = securityGroupService;
     this._meterService          = meterService;
     this._userService           = userService;
     this._attributeService      = attributeService;
     this._technicianService     = technicianService;
     this._teamService           = teamService;
     this._itemService           = itemService;
     this._assetService          = assetService;
     this._workOrderService      = workOrderService;
     this._locationService       = locationService;
     this._storeService          = storeService;
     this._serviceRequestService = serviceRequestService;
     this._companyService        = companyService;
 }
コード例 #4
0
 public GoVolunteerService(MPInterfaces.IParticipantRepository participantService,
                           IRegistrationRepository registrationService,
                           MPInterfaces.IContactRepository contactService,
                           IGroupConnectorRepository groupConnectorService,
                           IConfigurationWrapper configurationWrapper,
                           MPInterfaces.IContactRelationshipRepository contactRelationshipService,
                           MPInterfaces.IProjectTypeRepository projectTypeService,
                           IAttributeService attributeService,
                           IGoSkillsService skillsService,
                           MPInterfaces.ICommunicationRepository comunicationService,
                           MPInterfaces.IUserRepository userService)
 {
     _participantService         = participantService;
     _registrationService        = registrationService;
     _contactService             = contactService;
     _groupConnectorService      = groupConnectorService;
     _configurationWrapper       = configurationWrapper;
     _contactRelationshipService = contactRelationshipService;
     _projectTypeService         = projectTypeService;
     _attributeService           = attributeService;
     _otherEquipmentId           = _configurationWrapper.GetConfigIntValue("GoCincinnatiOtherEquipmentAttributeId");
     _skillsService        = skillsService;
     _communicationService = comunicationService;
     _userService          = userService;
 }
コード例 #5
0
 public AttributeApiController(IAttributeService attributeService,
                               IDbContextService dbContext, MapperConfiguration mapConfig)
 {
     _attributeService = attributeService;
     _dbContext        = dbContext;
     _mapper           = mapConfig.CreateMapper();
 }
コード例 #6
0
 public EditModel(
     //IUserProfileService userProfileService,
     IAttributeService attributeService)
 {
     //_userProfileService = userProfileService;
     _attributeService = attributeService;
 }
コード例 #7
0
 public DateTimeHelper(IAttributeService <string> userAttributeService, User currentUser, IConfigService configService, Config config)
 {
     _userAttributeService = userAttributeService;
     _currentUser          = currentUser;
     _configService        = configService;
     _config = config;
 }
コード例 #8
0
        public PostController(
            IPostService postService
            , IMenuLinkService menuLinkService
            , IAttributeValueService attributeValueService
            , IGalleryService galleryService
            , IImagePlugin imagePlugin
            , IAttributeService attributeService
            , ILanguageService languageService
            , ILocalizedPropertyService localizedPropertyService
            , IPostGalleryService postGalleryService
            , IGenericControlService genericControlService
            , ICacheManager cacheManager)
            : base(cacheManager)
        {
            this._postService              = postService;
            this._menuLinkService          = menuLinkService;
            this._attributeValueService    = attributeValueService;
            this._galleryService           = galleryService;
            this._imagePlugin              = imagePlugin;
            this._attributeService         = attributeService;
            this._languageService          = languageService;
            this._localizedPropertyService = localizedPropertyService;
            this._postGalleryService       = postGalleryService;
            _genericControlService         = genericControlService;
            _cacheManager = cacheManager;

            //Clear cache
            _cacheManager.Clear();
        }
コード例 #9
0
 public AttributeController(
     IAttributeService AttributeService,
     LogService logService)
 {
     _AttributeService = AttributeService;
     _logService       = logService;
 }
コード例 #10
0
ファイル: App.cs プロジェクト: NBakulin/DBShell
        public App(
            string connectionString,
            IAttributeService attributeService,
            IDatabaseService databaseService,
            ITableService tableService,
            ILinkService linkService,
            IDeployService deployService,
            IDatabaseValidator databaseValidator,
            ITableValidator tableValidator,
            IAttributeValidator attributeValidator,
            ICRUD crudService)
        {
            _defaultConnectionString = connectionString;
            // sorry for this
            _serverName = new Regex("(?:[Dd]ata\\s+[Ss]ource\\s*=\\s*)(?<server>.*?);")
                          .Match(input: _defaultConnectionString)
                          .Groups["server"]
                          .Value;

            _attributeService   = attributeService;
            _databaseService    = databaseService;
            _tableService       = tableService;
            _linkService        = linkService;
            _deployService      = deployService;
            _databaseValidator  = databaseValidator;
            _tableValidator     = tableValidator;
            _attributeValidator = attributeValidator;
            _crudService        = crudService;
        }
コード例 #11
0
        public AttributeController(IAttributeService attributeService,
                                   IAttributeGroupService attributeGroupService)
        {
            _attributeService = attributeService;

            _attributeGroupService = attributeGroupService;
        }
コード例 #12
0
 public AttributeController(IAttributeService attributeService, IProductService productService, IMapper mapper, ILogger <AttributeController> logger)
 {
     _attributeService = attributeService;
     _productService   = productService;
     _mapper           = mapper;
     _logger           = logger;
 }
コード例 #13
0
 public GetAttributes(IMapperProvider mapperProvider, IEncryptionProvider encryptionProvider,
                      ICacheProvider cacheProvider, IAttributeService attributeService)
     : base(mapperProvider, encryptionProvider)
 {
     _cacheProvider    = cacheProvider;
     _attributeService = attributeService;
 }
コード例 #14
0
 public AttributeController(IAttributeService attributeService,
                            IDistributedCache cache
                            )
 {
     _attributeService = attributeService;
     _cache            = cache;
 }
コード例 #15
0
 private void ResolveDependencies()
 {
     m_ActivityLogService = CurrentRequest.Resolver.Resolve <IActivityLogService>();
     m_AttributeService   = CurrentRequest.Resolver.Resolve <AttributeService>();
     m_ProductService     = CurrentRequest.Resolver.Resolve <ProductService>();
     m_Common             = CurrentRequest.Resolver.Resolve <CMS.AMS.Common>();
 }
コード例 #16
0
        public PostController(
            IPostService postService
            , IMenuLinkService menuLinkService
            , IAttributeValueService attributeValueService
            , IGalleryService galleryService
            , IImagePlugin imagePlugin
            , IAttributeService attributeService
            , ILanguageService languageService
            , ILocalizedPropertyService localizedPropertyService
            , IPostGalleryService postGalleryService
            , IGenericControlService genericControlService
            , ICacheManager cacheManager
            , IManufacturerService manufacturerService)
            : base(cacheManager)
        {
            _postService              = postService;
            _menuLinkService          = menuLinkService;
            _attributeValueService    = attributeValueService;
            _galleryService           = galleryService;
            _imagePlugin              = imagePlugin;
            _attributeService         = attributeService;
            _languageService          = languageService;
            _localizedPropertyService = localizedPropertyService;
            _postGalleryService       = postGalleryService;
            _cacheManager             = cacheManager;
            _manufacturerService      = manufacturerService;

            //Clear cache
            _cacheManager.RemoveByPattern(CachePostKey);
        }
コード例 #17
0
        public AttributeValueController(IAttributeValueService attributeValueService, IAttributeService attributeService, ICacheManager cacheManager)
        {
            _attributeValueService = attributeValueService;
            _attributeService      = attributeService;

            //Clear cache
            cacheManager.RemoveByPattern(Cache);
        }
コード例 #18
0
 public AttributeLoader(ILogger logger, IMail email, ISetup setup, ITranslator translator, IAttributeService attributeService)
 {
     _logger           = logger;
     _email            = email;
     _setup            = setup;
     _translator       = translator;
     _attributeService = attributeService;
 }
        public void Init()
        {
            attributeRepository = Substitute.For <IAttributeRepository>();
            var mapper = new MapperConfiguration(x => x.AddProfile(new MappingProfile())).CreateMapper();

            log = Substitute.For <ILog>();
            attributeService = new AttributeService(attributeRepository, mapper, log);
        }
コード例 #20
0
 public CategoryAttributeController(ICategoryService categoryService,
                                    IAttributeService attributeService,
                                    IProductAttributeService productAttribtettributeService)
 {
     this._categoryService  = categoryService;
     this._attributeService = attributeService;
     this._productAttribtettributeService = productAttribtettributeService;
 }
コード例 #21
0
 public AttributesController(
     IAttributeService attributeService,
     IAttributeValueService attributeValueService
     )
 {
     _attributeService      = attributeService;
     _attributeValueService = attributeValueService;
 }
コード例 #22
0
 public static void Save(this IAttributeService service, object owner, string key, object value)
 {
     service.Save(new Attribute {
         Owner = owner,
         Key   = key,
         Value = value
     });
 }
コード例 #23
0
 public GetCustomerAttributes(IMapperProvider mapperProvider, IEncryptionProvider encryptionProvider,
                              ICustomerAttributeService customerAttributeService, ICrmCacheProvider cacheProvider,
                              IAttributeService attributeService)
     : base(mapperProvider, encryptionProvider)
 {
     _customerAttributeService = customerAttributeService;
     _cacheProvider            = cacheProvider;
     _attributeService         = attributeService;
 }
コード例 #24
0
        public AttributeController(IAttributeService attributeService
                                   , ICacheManager cacheManager)
        {
            _attributeService = attributeService;
            _cacheManager     = cacheManager;

            //Clear cache
            _cacheManager.RemoveByPattern(CACHE_ATTRIBUTE_KEY);
        }
コード例 #25
0
        public AttributeController(IAttributeService attributeService
                                   , ICacheManager cacheManager)
        {
            _attributeService = attributeService;
            _cacheManager     = cacheManager;

            //Clear cache
            _cacheManager.RemoveByPattern(CacheAttributeKey);
        }
コード例 #26
0
 public ProductController(IUnitOfWork unitOfWork, IProductService productService,
                          IAttributeService attributeService, ICategoryService categoryService, IProductImageService productImageService, IValueService valueService)
 {
     _unitOfWork          = unitOfWork;
     _productService      = productService;
     _categoryService     = categoryService;
     _attributeService    = attributeService;
     _productImageService = productImageService;
     _valueService        = valueService;
 }
コード例 #27
0
 public CrmCacheProvider(ICacheProvider cacheProvider,
                         IAttributeService attributeService,
                         ICategoryService categoryService,
                         IPreferenceService preferenceService)
 {
     _cacheProvider     = cacheProvider;
     _attributeService  = attributeService;
     _categoryService   = categoryService;
     _preferenceService = preferenceService;
 }
コード例 #28
0
 public ContactAttributeService(
     MPInterfaces.IContactAttributeService mpContactAttributeService,
     IAttributeService attributeService,
     MPInterfaces.IApiUserService apiUserService,
     MPInterfaces.IAttributeService mpAttributeService)
 {
     _mpContactAttributeService = mpContactAttributeService;
     _attributeService = attributeService;
     _apiUserService = apiUserService;
     _mpAttributeService = mpAttributeService;
 }
コード例 #29
0
 public ObjectAttributeService(
     MPInterfaces.IObjectAttributeRepository mpObjectAttributeService,
     IAttributeService attributeService,
     MPInterfaces.IApiUserRepository apiUserService,
     MPInterfaces.IAttributeRepository mpAttributeService)
 {
     _mpObjectAttributeService = mpObjectAttributeService;
     _attributeService         = attributeService;
     _apiUserService           = apiUserService;
     _mpAttributeService       = mpAttributeService;
 }
コード例 #30
0
ファイル: LInkService.cs プロジェクト: NBakulin/DBShell
 public LInkService(
     IRepository <Link> linkRepository,
     IRepository <Attribute> attributeRepository,
     IRepository <Table> tableRepository,
     ILinkValidator linkValidator,
     IAttributeService attributeService)
 {
     _linkRepository      = linkRepository;
     _attributeRepository = attributeRepository;
     _tableRepository     = tableRepository;
     _linkValidator       = linkValidator;
     _attributeService    = attributeService;
 }
コード例 #31
0
 public CRUD(
     ISqlExpressionExecutor sqlExecutor,
     IDatabaseService databaseService,
     ICRUDsqlExpressionProvider crudSqlExpressionProvider,
     ITableService tableService,
     IAttributeService attributeService)
 {
     _sqlExecutor               = sqlExecutor;
     _databaseService           = databaseService;
     _crudSqlExpressionProvider = crudSqlExpressionProvider;
     _tableService              = tableService;
     _attributeService          = attributeService;
 }
コード例 #32
0
 public AttributeTypeController(IAttributeService attributeService)
 {
     _attributeService = attributeService;
 }