Ejemplo n.º 1
0
 public MatchingResumeController(
     IPostService iPostService,
     IRecommendService iRecommendService)
 {
     _iPostService      = iPostService;
     _iRecommendService = iRecommendService;
 }
Ejemplo n.º 2
0
 public ProjectController(IMediator mediator, IRecommendService recommendService, IProjectQueries projectQueries, ICapPublisher capBus)
 {
     _mediator         = mediator;
     _recommendService = recommendService;
     _projectQueries   = projectQueries;
     _capBus           = capBus;
 }
Ejemplo n.º 3
0
 public ProjectController(IMediator mediator,
                          IRecommendService recommendService,
                          IProjectQueries projectQueries)
 {
     _mediator         = mediator;
     _recommendService = recommendService;
     _projectQueries   = projectQueries;
 }
Ejemplo n.º 4
0
 public ProjectController(IMediator mediator, IRecommendService recommendService
                          , IProjectQueries projectQueries
                          , IProjectRepository projectRepository)
 {
     _mediatR           = mediator;
     _recommendService  = recommendService;
     _projectQueries    = projectQueries;
     _projectRepository = projectRepository;
 }
Ejemplo n.º 5
0
 public RecommendsController(
     ICurrentUserService currentUser,
     IRecommendService recommendService,
     IBeatService beatService)
 {
     this.currentUser      = currentUser;
     this.recommendService = recommendService;
     this.beatService      = beatService;
 }
 public RecommendationsController(
     UserManager <ApplicationUser> userManager,
     IRecommendService recommendService,
     IMediaService mediaService)
 {
     this.recommendService = recommendService;
     this.userManager      = userManager;
     this.mediaService     = mediaService;
 }
Ejemplo n.º 7
0
 public PreOrderController(IBookService bookService, IChapterService chapterService, IRecommendService recommendService, IUsersService usersService, IBookmarkService bookmarkService, IOrderService orderService)
 {
     _bookService      = bookService;
     _chapterService   = chapterService;
     _recommendService = recommendService;
     _usersService     = usersService;
     _bookmarkService  = bookmarkService;
     _orderService     = orderService;
 }
Ejemplo n.º 8
0
 public ChapterController(IBookService bookService, IChapterService chapterService, IRecommendService recommendService, IBookmarkService bookmarkService, IExtendChapterService extendChapterService, IADService adService, IOrderService orderService)
 {
     _bookService          = bookService;
     _chapterService       = chapterService;
     _recommendService     = recommendService;
     _bookmarkService      = bookmarkService;
     _extendChapterService = extendChapterService;
     _adService            = adService;
     _orderService         = orderService;
 }
Ejemplo n.º 9
0
 public ProjectsController(ILogger<ProjectsController> logger,
     IMediator mediator,
     IRecommendService recommendService,
     IProjectQueries projectQueries
     ) : base(logger)
 {
     _mediator = mediator;
     _recommendService = recommendService;
     _projectQueries = projectQueries;
 }
Ejemplo n.º 10
0
 public HomeController(IRecommendService recommendService, IADService adService, IPackageService packageService, IBookService bookService, IPromotionLinkService promotionLinkService, INovelPromotionChannelService novelPromotionChannelService, IChapterService chapterService, IUsersService usersService)
 {
     _recommendService             = recommendService;
     _adService                    = adService;
     _packageService               = packageService;
     _bookService                  = bookService;
     _promotionLinkService         = promotionLinkService;
     _novelPromotionChannelService = novelPromotionChannelService;
     _chapterService               = chapterService;
     _usersService                 = usersService;
 }
Ejemplo n.º 11
0
        //List<Resume> lists = new List<Resume>();

        public MatchingController(
            IUserService iUserService,
            IResumeService resumeService,
            IPostService iPostService,
            IRecommendService iRecommendService)
        {
            _iUserService      = iUserService;
            _resumeService     = resumeService;
            _iPostService      = iPostService;
            _iRecommendService = iRecommendService;
        }
Ejemplo n.º 12
0
 public BookController(IBookService bookService, IHotSearchWordService hotSearchWordService, IRecommendService recommendService, IBookmarkService bookmarkService, IPresentService presentService, IChapterService chapterService, ICommentService commentService, IPackageService packageService, IOrderService orderService)
 {
     _bookService          = bookService;
     _hotSearchWordService = hotSearchWordService;
     _recommendService     = recommendService;
     _bookmarkService      = bookmarkService;
     _presentService       = presentService;
     _chapterService       = chapterService;
     _commentService       = commentService;
     _packageService       = packageService;
     _orderService         = orderService;
 }
Ejemplo n.º 13
0
 public ProjectController(IMediator mediator,
                          IRecommendService recommendService,
                          IProjectQueries projectQueries,
                          ProjectContext projectContext,
                          ICapPublisher cabPublisher)
 {
     _mediator         = mediator;
     _recommendService = recommendService;
     _projectQueries   = projectQueries;
     _projectContext   = projectContext;
     _cabPublisher     = cabPublisher;
 }
Ejemplo n.º 14
0
 public RecommendController(
     IUserService iUserService,
     IResumeService iResumeService,
     ICompanyService iCompanyService,
     IPostService iPostService,
     IRecommendService iRecommendService,
     IMapper iMapper)
 {
     _iCompanyService   = iCompanyService;
     _iPostService      = iPostService;
     _iRecommendService = iRecommendService;
     _iUserService      = iUserService;
     _iResumeService    = iResumeService;
     _iMapper           = iMapper;
 }
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(
            IApplicationBuilder app,
            IWebHostEnvironment env,
            IHttpContextAccessor accessor,
            IRecommendService _recommendService,
            IAddAllService _addAllService,
            IDeleteMonthlyLogFiles _deleteMonthlyLogFiles)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            app.UseHttpsRedirection();
            app.UseStaticFiles();
            app.UseRouting();
            app.UseCors(x => x
                        .AllowAnyOrigin()
                        .AllowAnyMethod()
                        .AllowAnyHeader());
            app.UseHangfireDashboard();
            app.UseHangfireServer();
            app.UseAuthentication();
            app.UseAuthorization();
            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
            RecurringJob.AddOrUpdate(() => _recommendService.ExecuteAsync(), Cron.Daily);
            RecurringJob.AddOrUpdate(() => _deleteMonthlyLogFiles.Execute(), Cron.Daily);
            RecurringJob.AddOrUpdate(() => _addAllService.ExecuteAsync(), Cron.Hourly);
            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });
            // Enable middleware to serve generated Swagger as a JSON endpoint
            app.UseSwagger();

            // Enable middleware to serve swagger-ui assets (HTML, JS, CSS etc.)
            app.UseSwaggerUI(c =>
            {
                c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
            });
            app.UseCors("CorsPolicy");
            app.UseDeveloperExceptionPage();
        }
Ejemplo n.º 16
0
 public RankController(IBookService bookService, IRecommendService recommendService)
 {
     _bookService      = bookService;
     _recommendService = recommendService;
 }
Ejemplo n.º 17
0
 public CartoonController(IADService adService, IBookService bookService, IRecommendService recommendService)
 {
     _adService        = adService;
     _bookService      = bookService;
     _recommendService = recommendService;
 }
Ejemplo n.º 18
0
 public RecommendController(IRecommendService _service)
 {
     this.service = _service;
 }
Ejemplo n.º 19
0
 public RecommendsController(IRecommendService service)
 {
     _service = service;
 }
Ejemplo n.º 20
0
 public ProjectsController(IMediator mediator, IRecommendService recommendService, IProjectQueries projectQueries)
 {
     this.mediator       = mediator;
     this.recommend      = recommendService;
     this.projectQueries = projectQueries;
 }
Ejemplo n.º 21
0
 public ProjectController(IMediator mediator, IRecommendService recommendService)
 {
     _mediator         = mediator;
     _recommendService = recommendService;
 }
 public RecommendController(IRecommendService recommendService)
 {
     this.recommendService = recommendService;
 }