public UserConfigurationService(IUserConfigurationRepository userRepository,
                                 IMapper mapper, IConfiguration configuration)
 {
     this.userRepository = userRepository;
     this.mapper         = mapper;
     this.configuration  = configuration;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EventWorkflowHelper"/> class.
 /// </summary>
 /// <param name="eventRepository">Provides the methods for event related operations on storage.</param>
 /// <param name="eventSearchService">The event search service for event table.</param>
 /// <param name="eventGraphHelper">Graph API helper for events.</param>
 /// <param name="groupGraphHelper">Graph API helper for groups.</param>
 /// <param name="userConfigurationRepository">Provides the methods for user configuration operations on storage.</param>
 /// <param name="teamConfigurationRepository">Provides the methods for LnD team configuration operations on storage.</param>
 /// <param name="categoryHelper">Category helper for fetching based on Ids, binding category names to events.</param>
 /// <param name="localizer">The current culture's string localizer.</param>
 /// <param name="userGraphHelper">Graph API helper for users API.</param>
 /// <param name="notificationHelper">The notification helper for notification activities.</param>
 /// <param name="botOptions">A set of key/value application configuration properties for activity settings.</param>
 public EventWorkflowHelper(
     IEventRepository eventRepository,
     IEventSearchService eventSearchService,
     IEventGraphHelper eventGraphHelper,
     IGroupGraphHelper groupGraphHelper,
     IUserConfigurationRepository userConfigurationRepository,
     ILnDTeamConfigurationRepository teamConfigurationRepository,
     ICategoryHelper categoryHelper,
     IStringLocalizer <Strings> localizer,
     IUserGraphHelper userGraphHelper,
     INotificationHelper notificationHelper,
     IOptions <BotSettings> botOptions)
 {
     this.eventRepository             = eventRepository;
     this.eventSearchService          = eventSearchService;
     this.eventGraphHelper            = eventGraphHelper;
     this.groupGraphHelper            = groupGraphHelper;
     this.userConfigurationRepository = userConfigurationRepository;
     this.teamConfigurationRepository = teamConfigurationRepository;
     this.categoryHelper     = categoryHelper;
     this.localizer          = localizer;
     this.userGraphHelper    = userGraphHelper;
     this.notificationHelper = notificationHelper;
     this.botOptions         = botOptions;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ActivityHandlerHelper"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="localizer">The current cultures' string localizer.</param>
 /// <param name="options">The options.</param>
 /// <param name="teamConfigurationRepository">Provides insert and delete operations for team configuration entity.</param>
 /// <param name="userConfigurationRepository">Provides insert and delete operations for user details entity.</param>
 public ActivityHandlerHelper(
     ILogger <EmployeeTrainingActivityHandler> logger,
     IStringLocalizer <Strings> localizer,
     IOptions <BotSettings> options,
     ILnDTeamConfigurationRepository teamConfigurationRepository,
     IUserConfigurationRepository userConfigurationRepository)
 {
     this.logger     = logger;
     this.localizer  = localizer;
     this.botOptions = options;
     this.teamConfigurationRepository = teamConfigurationRepository;
     this.userConfigurationRepository = userConfigurationRepository;
 }
Esempio n. 4
0
 public UserConfigurationService(
     ILogger <UserConfigurationService> logger,
     IUnitOfWork unitOfWork,
     IUserConfigurationRepository userConfigurationRepository,
     IIdentityService identityService,
     IMapper mapper)
 {
     _unitOfWork = unitOfWork;
     _userConfigurationRepository = userConfigurationRepository;
     _logger          = logger;
     _mapper          = mapper;
     _identityService = identityService ?? throw new ArgumentNullException(nameof(identityService));
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BackgroundNotificationHelper"/> class.
 /// BackgroundService class that inherits IHostedService and implements the methods related to sending notification tasks.
 /// </summary>
 /// <param name="logger">Instance to send logs to the Application Insights service.</param>
 /// <param name="notificationHelper">Helper to send notification in channels.</param>
 /// <param name="userEventSearchService">The user event search service to generate query and fetch results.</param>
 /// <param name="botOptions">A set of key/value application configuration properties for activity settings</param>
 /// <param name="localizer">The current culture's string localizer</param>
 /// <param name="userConfigurationRepository">The user repository for user related operations on storage</param>
 /// <param name="categoryHelper">Category helper to fetch and bind category name by Id.</param>
 public BackgroundNotificationHelper(
     ILogger <BackgroundNotificationHelper> logger,
     INotificationHelper notificationHelper,
     IUserEventSearchService userEventSearchService,
     IOptions <BotSettings> botOptions,
     IStringLocalizer <Strings> localizer,
     IUserConfigurationRepository userConfigurationRepository,
     ICategoryHelper categoryHelper)
 {
     this.logger                      = logger;
     this.notificationHelper          = notificationHelper;
     this.userEventSearchService      = userEventSearchService;
     this.botOptions                  = botOptions;
     this.localizer                   = localizer;
     this.userConfigurationRepository = userConfigurationRepository;
     this.categoryHelper              = categoryHelper;
 }