Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 5
0
 public PetitionService(IMapper mapper, IPetitionRepository petitionRepository, IAdService adService, IIdentityService identityService)
 {
     _petitionRepository = petitionRepository;
     _mapper             = mapper;
     _adService          = adService;
     _identityService    = identityService;
 }
Ejemplo n.º 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
            });
        }
Ejemplo n.º 8
0
 public CustomerAddingAd()
 {
     InitializeComponent();
     _adService   = InstanceFactory.GetInstance <IAdService>();
     _cityService = InstanceFactory.GetInstance <ICityService>();
     _carsService = InstanceFactory.GetInstance <ICarsService>();
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 12
0
 public UserController(IAdService servAd, IKindService servKind, ILocationService servLocation, ITagService servTag)
 {
     adService       = servAd;
     kindService     = servKind;
     locationService = servLocation;
     tagService      = servTag;
 }
Ejemplo n.º 13
0
 public AdsController(IAdService adService, IMapper mapper, IWebHostEnvironment webHostEnvironment, IUriService uriService, IConfiguration configuration)
 {
     _adService          = adService;
     _mapper             = mapper;
     _webHostEnvironment = webHostEnvironment;
     _uriService         = uriService;
     _configuration      = configuration;
 }
Ejemplo n.º 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>();
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 18
0
 public HomeViewModel()
 {
     adService         = DependencyService.Get <IAdService>();
     dataService       = DependencyService.Get <IDataService>();
     imageService      = DependencyService.Get <IImageService>();
     printService      = DependencyService.Get <IPrintService>();
     permissionService = DependencyService.Get <IPermissionService>();
 }
Ejemplo n.º 19
0
 public CommentService(ICommentRepository repository, IUserService userService, IIdentityService identityService, IAdService adService, IMapper mapper)
 {
     _repository      = repository;
     _userService     = userService;
     _identityService = identityService;
     _adService       = adService;
     _mapper          = mapper;
 }
Ejemplo n.º 20
0
 public AdController(IAdService adProvider)
 {
     if (adProvider == null)
     {
         throw new NullReferenceException(nameof(adProvider));
     }
     _adProvider = adProvider;
 }
Ejemplo n.º 21
0
 public HomeController()
 {
     ProductService = new ProductService();
     ItemService = new ItemShoppingService();
     ShoppingListService = new ShoppingListService();
     CaddyService = new CaddyService();
     AdService = new AdService();
     ClientService = new ClientService();
 }
Ejemplo n.º 22
0
 public HomeController()
 {
     ProductService      = new ProductService();
     ItemService         = new ItemShoppingService();
     ShoppingListService = new ShoppingListService();
     CaddyService        = new CaddyService();
     AdService           = new AdService();
     ClientService       = new ClientService();
 }
Ejemplo n.º 23
0
 public DataInitializer(IUserService userService, IScanPageService scanPageService,
                        IScraperService scraperService, IAdService adService, IAuthService authService)
 {
     _userService     = userService;
     _scanPageService = scanPageService;
     _scraperService  = scraperService;
     _adService       = adService;
     _authService     = authService;
 }
Ejemplo n.º 24
0
 public AdRegister(
     IAdService adService,
     IAdImageService adImageService,
     IAddressService addressService)
 {
     this.adService      = adService;
     this.adImageService = adImageService;
     this.addressService = addressService;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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>();
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
 }