コード例 #1
0
 public LoginService(Database db, IUserRepository userService, IAuditsRepository auditsService, IAdService adService)
 {
     UserService   = userService;
     AuditsService = auditsService;
     AdService     = adService;
     _db           = db;
 }
 public AppointmentController(IProfileService profileService, IAppointmentService appointmentService, IAccountService accountService, IAdService adService)
 {
     this.appointmentService = appointmentService;
     this.accountService     = accountService;
     this.adService          = adService;
     this.profileService     = profileService;
 }
コード例 #3
0
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
        public UsersController(UserManagementDBContext context, IMapper mapper, IAdService adService)
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
        {
            _context   = context;
            _mapper    = mapper;
            _adService = adService;
        }
コード例 #4
0
 public PublisherController(IProductService productService, IBlogService blogService,
                            IWebsiteAttributeService websiteAttributeService, IBlogCategoryService blogCategoryService,
                            IStaffService staffService, IProductAttributeMappingService productAttributeMappingService,
                            IProductRelationshipService productRelationshipService, IProductScheduleService productScheduleService,
                            IOrderService orderService, IOrderItemService orderItemService,
                            IOrderAttributeService orderAttributeService, IOrderAttributeMappingService orderAttributeMappingService,
                            IAdService adService, IAdMaterialMappingService adMaterialService, IMaterialService materialService, IDomainService domainService, ICodeService codeService)
 {
     this._productService                 = productService;
     this._blogService                    = blogService;
     this._websiteAttributeService        = websiteAttributeService;
     this._blogCategoryService            = blogCategoryService;
     this._staffService                   = staffService;
     this._productAttributeMappingService = productAttributeMappingService;
     this._productRelationshipService     = productRelationshipService;
     this._productScheduleService         = productScheduleService;
     this._orderService                   = orderService;
     this._orderAttributeService          = orderAttributeService;
     this._orderAttributeMappingService   = orderAttributeMappingService;
     this._adService = adService;
     this._adMaterialMappingService = adMaterialService;
     this._materialService          = materialService;
     this._domainService            = domainService;
     this._codeService = codeService;
 }
コード例 #5
0
ファイル: PetitionService.cs プロジェクト: Timeryan/JustFind
 public PetitionService(IMapper mapper, IPetitionRepository petitionRepository, IAdService adService, IIdentityService identityService)
 {
     _petitionRepository = petitionRepository;
     _mapper             = mapper;
     _adService          = adService;
     _identityService    = identityService;
 }
コード例 #6
0
        public AdManager(
            IAdService adService,
            ICardService cardService,
            IAdImageService adImageService,
            IAddressService addressService,
            IOwnerService ownerService,
            IAdStatusService adStatusService,
            AddressManager addressManager,
            AdRegister adRegister,
            CardDetailDTOParser cardDetailDTOParser,
            AdImageDTOParser adImageDTOParser,
            CardRegisterDTOParser cardRegisterDTOParser
            )
        {
            this.adService       = adService;
            this.cardService     = cardService;
            this.adImageService  = adImageService;
            this.addressService  = addressService;
            this.ownerService    = ownerService;
            this.adStatusService = adStatusService;

            this.adRegister = adRegister;

            this.cardDetailDTOParser   = cardDetailDTOParser;
            this.adImageDTOParser      = adImageDTOParser;
            this.cardRegisterDTOParser = cardRegisterDTOParser;

            this.addressManager = addressManager;
        }
        public async Task <ActionResult <dynamic> > Authenticate([FromServices] IAdService adService, [FromBody] User model)
        {
            // Recupera o usuário
            var user = UserRepository.Get(model.Username, model.Password);

            // Autenticação no AD por LDAP
            var authenticated = adService.Authenticate("MY_DOMAIN", model.Username, model.Password);

            // Verifica se o usuário existe
            if (user == null)
            {
                return(NotFound(new { message = "Usuário ou senha inválidos" }));
            }

            // Gera o Token
            var token = TokenService.GenerateToken(_configuration, user);

            // Oculta a senha
            user.Password = "";

            // Retorna os dados
            return(new
            {
                user = user,
                token = token
            });
        }
コード例 #8
0
 public CustomerAddingAd()
 {
     InitializeComponent();
     _adService   = InstanceFactory.GetInstance <IAdService>();
     _cityService = InstanceFactory.GetInstance <ICityService>();
     _carsService = InstanceFactory.GetInstance <ICarsService>();
 }
コード例 #9
0
 public ApiImgController(Cloudinary cloudinary, UserManager <ApplicationUser> userManager, IImgService imgService, IAdService adService)
 {
     this.cloudinary  = cloudinary;
     this.userManager = userManager;
     this.imgService  = imgService;
     this.adService   = adService;
 }
コード例 #10
0
 public AdminForm()
 {
     InitializeComponent();
     _adService   = InstanceFactory.GetInstance <IAdService>();
     _cityService = InstanceFactory.GetInstance <ICityService>();
     _carsService = InstanceFactory.GetInstance <ICarsService>();
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoginBll" /> class.
 /// </summary>
 /// <param name="config">The config value.</param>
 public LoginBll(IConfigSetting config, IUnitOfWork unitOfWork, IAdService adService, IRoleBll roleBll)
 {
     _config     = config;
     _unitOfWork = unitOfWork;
     _adService  = adService;
     _roleBll    = roleBll;
 }
コード例 #12
0
 public UserController(IAdService servAd, IKindService servKind, ILocationService servLocation, ITagService servTag)
 {
     adService       = servAd;
     kindService     = servKind;
     locationService = servLocation;
     tagService      = servTag;
 }
コード例 #13
0
ファイル: AdsController.cs プロジェクト: Chojakv/Books_API
 public AdsController(IAdService adService, IMapper mapper, IWebHostEnvironment webHostEnvironment, IUriService uriService, IConfiguration configuration)
 {
     _adService          = adService;
     _mapper             = mapper;
     _webHostEnvironment = webHostEnvironment;
     _uriService         = uriService;
     _configuration      = configuration;
 }
コード例 #14
0
ファイル: Service.cs プロジェクト: loretorafa/Webmotors
 public Service(IAdService service, WebMotorsAPI api)
 {
     this._adService = service;
     this._api       = api;
     this._makes     = new List <WebMotorsOptions>();
     this._models    = new List <WebMotorsOptions>();
     this._versions  = new List <WebMotorsOptions>();
 }
コード例 #15
0
 public AdController(IConfiguration configuration, ILogger <AdController> logger, IAdService adService, IAdSearchService adSearchService, IJsonDataService jsonDataService)
 {
     _configuration   = configuration;
     _logger          = logger;
     _adService       = adService;
     _jsonDataService = jsonDataService;
     _adSearchService = adSearchService;
 }
コード例 #16
0
ファイル: AdController.cs プロジェクト: dimitur98/DimiAuto
 public AdController(IAdService adService, ICommentService commentService, IDeletableEntityRepository <ApplicationUser> userRepository, IViewService viewService, IDistributedCache distributedCache)
 {
     this.adService        = adService;
     this.commentService   = commentService;
     this.userRepository   = userRepository;
     this.viewService      = viewService;
     this.distributedCache = distributedCache;
 }
コード例 #17
0
 public WishlistService(IWishlistRepository repository, ILocalizationRepository localizationRepository, IAdService adService, ILogger <WishlistService> logger, UserManager <ApplicationUser> userManager)
 {
     _localizationRepository = localizationRepository;
     _adService   = adService;
     _repository  = repository;
     _logger      = logger;
     _userManager = userManager;
 }
コード例 #18
0
 public HomeViewModel()
 {
     adService         = DependencyService.Get <IAdService>();
     dataService       = DependencyService.Get <IDataService>();
     imageService      = DependencyService.Get <IImageService>();
     printService      = DependencyService.Get <IPrintService>();
     permissionService = DependencyService.Get <IPermissionService>();
 }
コード例 #19
0
 public CommentService(ICommentRepository repository, IUserService userService, IIdentityService identityService, IAdService adService, IMapper mapper)
 {
     _repository      = repository;
     _userService     = userService;
     _identityService = identityService;
     _adService       = adService;
     _mapper          = mapper;
 }
コード例 #20
0
 public AdController(IAdService adProvider)
 {
     if (adProvider == null)
     {
         throw new NullReferenceException(nameof(adProvider));
     }
     _adProvider = adProvider;
 }
コード例 #21
0
 public HomeController()
 {
     ProductService = new ProductService();
     ItemService = new ItemShoppingService();
     ShoppingListService = new ShoppingListService();
     CaddyService = new CaddyService();
     AdService = new AdService();
     ClientService = new ClientService();
 }
コード例 #22
0
 public HomeController()
 {
     ProductService      = new ProductService();
     ItemService         = new ItemShoppingService();
     ShoppingListService = new ShoppingListService();
     CaddyService        = new CaddyService();
     AdService           = new AdService();
     ClientService       = new ClientService();
 }
コード例 #23
0
 public DataInitializer(IUserService userService, IScanPageService scanPageService,
                        IScraperService scraperService, IAdService adService, IAuthService authService)
 {
     _userService     = userService;
     _scanPageService = scanPageService;
     _scraperService  = scraperService;
     _adService       = adService;
     _authService     = authService;
 }
コード例 #24
0
 public AdRegister(
     IAdService adService,
     IAdImageService adImageService,
     IAddressService addressService)
 {
     this.adService      = adService;
     this.adImageService = adImageService;
     this.addressService = addressService;
 }
コード例 #25
0
ファイル: UsersController.cs プロジェクト: Chojakv/Books_API
 public UsersController(IUserService userService, IMapper mapper, IAdService adService, IMessageService messageService, IWebHostEnvironment webHostEnvironment, IConfiguration configuration)
 {
     _userService        = userService;
     _mapper             = mapper;
     _adService          = adService;
     _messageService     = messageService;
     _webHostEnvironment = webHostEnvironment;
     _configuration      = configuration;
 }
コード例 #26
0
 public ReportController(
     IAdService adService,
     IReportService reportService,
     IMapper mapper)
 {
     this.adService     = adService;
     this.reportService = reportService;
     this.mapper        = mapper;
 }
コード例 #27
0
 public ManageServicesController(
     IServicesService servicesService,
     IServiceActiveTimeService serviecActiveTimeService,
     IAdService adService)
 {
     _servicesService          = servicesService;
     _adService                = adService;
     _prepearingModelHelper    = new PrepearingModelHelper(null);
     _serviecActiveTimeService = serviecActiveTimeService;
 }
 public SearchForm()
 {
     InitializeComponent();
     _adService    = InstanceFactory.GetInstance <IAdService>();
     _cityService  = InstanceFactory.GetInstance <ICityService>();
     _colorService = InstanceFactory.GetInstance <IColorService>();
     _carsService  = InstanceFactory.GetInstance <ICarsService>();
     _gearService  = InstanceFactory.GetInstance <IGearService>();
     _fuelService  = InstanceFactory.GetInstance <IFuelService>();
 }
コード例 #29
0
 public ManageController(IUserService servU, IAdService servA, IKindService servK, ICategoryService servC, ILocationService servL, IImageService servI, ITagService servT)
 {
     userService     = servU;
     adService       = servA;
     kindService     = servK;
     categoryService = servC;
     locationService = servL;
     imageService    = servI;
     tagService      = servT;
 }
コード例 #30
0
ファイル: UsersController.cs プロジェクト: alexand1r/SnapBook
 public UsersController(
     IUserService users,
     IAdService ads,
     INotificationService notifications,
     UserManager <User> userManager)
 {
     this.users         = users;
     this.ads           = ads;
     this.notifications = notifications;
     this.userManager   = userManager;
 }
コード例 #31
0
 public AdsController(IAdService adService, ICityService cityService, IWishlistService wishlistService, ICategoryService categoryService, ICountryService countryService, ILocalizationService localizationService, UserManager <ApplicationUser> userManager, ILogger <AdsController> logger)
 {
     _wishlistService     = wishlistService;
     _adService           = adService;
     _cityService         = cityService;
     _categoryService     = categoryService;
     _countryService      = countryService;
     _localizationService = localizationService;
     _userManager         = userManager;
     _logger = logger;
 }
コード例 #32
0
 private void createServices()
 {
     timeService = new TimeService();
     eventService = new EventService();
     uiFactoryService = new UIFactoryService();
     wwwService = new FakeWwwService();//controller.GameObject.AddComponent<WwwService>();
     viewService = new ViewService(eventService, uiFactoryService);
     loadService = new LoadService(eventService);
     gameService = new GameService(pool, viewService);
     pathService = new PathService(pool, wwwService, eventService);
     levelService = new LevelService(wwwService, eventService);
     enemyService = new EnemyService(pool, wwwService, eventService);
     bonusService = new BonusService(pool, wwwService, eventService);
     difficultyService = new DifficultyService(pool, wwwService, eventService);
     infoService = new InfoService(viewService, uiFactoryService, eventService);
     settingsService = new SettingsService(pool);
     translationService = new TranslationService(settingsService);
     languageService = new LanguageService(wwwService, eventService);
     analyticsService = new AnalyticsService(settingsService);
     shipService = new ShipService(timeService, eventService);
     gamerService = new GamerService(eventService);
     currencyService = new CurrencyService(eventService, gamerService);
     iapService = new IAPService(eventService);
     adService = new AdService(currencyService);
     shopService = new ShopService(currencyService, eventService, iapService);
     updateables.Add(infoService);
 }