public UserController(IUserService userService, IPublicEventService publicEventService, ApplicationDbContext context, IHostingEnvironment env, IMediator mediator) { _publicEventService = publicEventService; _userService = userService; _context = context; _enviroment = env; _mediator = mediator; }
public UserService(ApplicationDbContext context, IPublicEventService publicEventService, IPrivateEventService privateEventService, INoteService noteService) { _noteService = noteService; _privateEventService = privateEventService; _context = context; _publicEventService = publicEventService; }
public NoteService(ApplicationDbContext context, IPublicEventService publicEventService) { _context = context; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure( IApplicationBuilder app, IHostingEnvironment env, IStatisticsUpdater statisticsUpdater, IReminder reminder, IInfoService infoService, IEventsUpdater eventsUpdater, IEmailSender emailSender, IPublicEventService publicEventService, IUserService userService, IPrivateEventService privateEventService, INoteService noteService, IReminderSettingService reminderSettingService ) { var options = new RewriteOptions() .AddRedirectToHttps(); app.UseRewriter(options); app.UseHangfireServer(); app.UseHangfireDashboard(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseBrowserLink(); app.UseDatabaseErrorPage(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseStaticFiles(); app.UseAuthentication(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=PublicEvents}/{action=Index}"); routes.MapRoute( name: "privacy", template: "PolitykaPrywatnosci", defaults: new { controller = "PublicEvents", action = "PolitykaPrywatnosci" }); routes.MapRoute( name: "categoryView", template: "Kategoria/{categoryId}/{categoryName}", defaults: new { controller = "PublicEvents", action = "CategoryView" }); routes.MapRoute( name: "interval", template: "Interwaly", defaults: new { controller = "PublicEvents", action = "IntervalTimer" }); routes.MapRoute( name: "stopwatch", template: "Stoper", defaults: new { controller = "PublicEvents", action = "Stoper" }); routes.MapRoute( name: "userPanel", template: "Panel", defaults: new { controller = "User", action = "Index" }); routes.MapRoute( name: "calendar", template: "Kalendarz", defaults: new { controller = "User", action = "Calendar" }); routes.MapRoute( name: "create", template: "Dodaj", defaults: new { controller = "User", action = "Create" }); routes.MapRoute( name: "timezones", template: "StrefyCzasowe", defaults: new { controller = "PublicEvents", action = "TimeZones" }); routes.MapRoute( name: "event", template: "wydarzenie/{id}/{name}", defaults: new { controller = "PublicEvents", action = "Event" }); }); RecurringJob.AddOrUpdate(() => statisticsUpdater.UpdateStatistics(), Cron.MinuteInterval(5)); RecurringJob.AddOrUpdate(() => eventsUpdater.GetFilmwebEventsFilms(), Cron.Daily); RecurringJob.AddOrUpdate(() => eventsUpdater.GetFilmwebEventsSerials(), Cron.Daily); RecurringJob.AddOrUpdate(() => eventsUpdater.GetKupBilecikEvents(), Cron.Daily); RecurringJob.AddOrUpdate(() => eventsUpdater.GetTicketMasterEvents(), Cron.Daily); RecurringJob.AddOrUpdate(() => eventsUpdater.GetEmpikEvents(), Cron.Daily); RecurringJob.AddOrUpdate(() => reminder.SendEmail(), Cron.Daily); }
public PrivateEventService(ApplicationDbContext context, IPublicEventService publicEventService) { _context = context; }
public PublicEventsController(IPublicEventService publicEventService) { _publicEventService = publicEventService; }
public ReminderSettingService(ApplicationDbContext context, IPublicEventService publicEventService) { _context = context; }