示例#1
0
 public EventTaskNotificationService(
     DataContext context,
     IUserNotificationService userNotificationService,
     IUserService userService,
     IEventTasksService eventTaskService,
     IOptions <SmtpSettings> smtpSettings,
     IOptions <AppSettings> appSettings,
     IConfiguration configuration,
     ILogger <EventTaskNotificationService> logger,
     IServiceProvider services
     //IHubContext<NotificationHub, INotificationHub> hub
     )
 {
     _context = context;
     _userNotificationService = userNotificationService;
     _userService             = userService;
     _eventTaskService        = eventTaskService;
     _smtpSettings            = smtpSettings.Value;
     _appSettings             = appSettings.Value;
     _configuration           = configuration;
     _services = services;
     _logger   = logger;
 }
示例#2
0
 public EventTasksController(DataContext context, IEventTasksService eventTaskService)
 {
     _context           = context;
     _eventTasksService = eventTaskService;
 }