Example #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;
 }
Example #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;
        }
Example #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;
 }
Example #5
0
 public PetitionService(IMapper mapper, IPetitionRepository petitionRepository, IAdService adService, IIdentityService identityService)
 {
     _petitionRepository = petitionRepository;
     _mapper             = mapper;
     _adService          = adService;
     _identityService    = identityService;
 }
        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
            });
        }
Example #8
0
 public CustomerAddingAd()
 {
     InitializeComponent();
     _adService   = InstanceFactory.GetInstance <IAdService>();
     _cityService = InstanceFactory.GetInstance <ICityService>();
     _carsService = InstanceFactory.GetInstance <ICarsService>();
 }
Example #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;
 }
Example #10
0
 public AdminForm()
 {
     InitializeComponent();
     _adService   = InstanceFactory.GetInstance <IAdService>();
     _cityService = InstanceFactory.GetInstance <ICityService>();
     _carsService = InstanceFactory.GetInstance <ICarsService>();
 }
 /// <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;
 }
Example #12
0
 public UserController(IAdService servAd, IKindService servKind, ILocationService servLocation, ITagService servTag)
 {
     adService       = servAd;
     kindService     = servKind;
     locationService = servLocation;
     tagService      = servTag;
 }
Example #13
0
 public AdsController(IAdService adService, IMapper mapper, IWebHostEnvironment webHostEnvironment, IUriService uriService, IConfiguration configuration)
 {
     _adService          = adService;
     _mapper             = mapper;
     _webHostEnvironment = webHostEnvironment;
     _uriService         = uriService;
     _configuration      = configuration;
 }
Example #14
0
 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>();
 }
Example #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;
 }
Example #16
0
 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;
 }
 public WishlistService(IWishlistRepository repository, ILocalizationRepository localizationRepository, IAdService adService, ILogger <WishlistService> logger, UserManager <ApplicationUser> userManager)
 {
     _localizationRepository = localizationRepository;
     _adService   = adService;
     _repository  = repository;
     _logger      = logger;
     _userManager = userManager;
 }
Example #18
0
 public HomeViewModel()
 {
     adService         = DependencyService.Get <IAdService>();
     dataService       = DependencyService.Get <IDataService>();
     imageService      = DependencyService.Get <IImageService>();
     printService      = DependencyService.Get <IPrintService>();
     permissionService = DependencyService.Get <IPermissionService>();
 }
Example #19
0
 public CommentService(ICommentRepository repository, IUserService userService, IIdentityService identityService, IAdService adService, IMapper mapper)
 {
     _repository      = repository;
     _userService     = userService;
     _identityService = identityService;
     _adService       = adService;
     _mapper          = mapper;
 }
Example #20
0
 public AdController(IAdService adProvider)
 {
     if (adProvider == null)
     {
         throw new NullReferenceException(nameof(adProvider));
     }
     _adProvider = adProvider;
 }
 public HomeController()
 {
     ProductService = new ProductService();
     ItemService = new ItemShoppingService();
     ShoppingListService = new ShoppingListService();
     CaddyService = new CaddyService();
     AdService = new AdService();
     ClientService = new ClientService();
 }
Example #22
0
 public HomeController()
 {
     ProductService      = new ProductService();
     ItemService         = new ItemShoppingService();
     ShoppingListService = new ShoppingListService();
     CaddyService        = new CaddyService();
     AdService           = new AdService();
     ClientService       = new ClientService();
 }
Example #23
0
 public DataInitializer(IUserService userService, IScanPageService scanPageService,
                        IScraperService scraperService, IAdService adService, IAuthService authService)
 {
     _userService     = userService;
     _scanPageService = scanPageService;
     _scraperService  = scraperService;
     _adService       = adService;
     _authService     = authService;
 }
 public AdRegister(
     IAdService adService,
     IAdImageService adImageService,
     IAddressService addressService)
 {
     this.adService      = adService;
     this.adImageService = adImageService;
     this.addressService = addressService;
 }
Example #25
0
 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;
 }
Example #26
0
 public ReportController(
     IAdService adService,
     IReportService reportService,
     IMapper mapper)
 {
     this.adService     = adService;
     this.reportService = reportService;
     this.mapper        = mapper;
 }
 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>();
 }
Example #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;
 }
Example #30
0
 public UsersController(
     IUserService users,
     IAdService ads,
     INotificationService notifications,
     UserManager <User> userManager)
 {
     this.users         = users;
     this.ads           = ads;
     this.notifications = notifications;
     this.userManager   = userManager;
 }
Example #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;
 }
Example #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);
 }