Example #1
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;
 }
Example #2
0
 public DuplicatesService(IContentService contentService, IEventSearchService eventSearchService,
                          ITextComparisonService textComparisonService)
 {
     _contentService        = contentService;
     _eventSearchService    = eventSearchService;
     _textComparisonService = textComparisonService;
 }
Example #3
0
 public FeedController(IModelConverter modelConverter,
                       IUmbracoWrapper umbracoWrapper,
                       IEventSearchService eventSearchService)
 {
     _modelConverter     = modelConverter;
     _umbracoWrapper     = umbracoWrapper;
     _eventSearchService = eventSearchService;
 }
        public EventSearchController(
            IEventSearchService eventSearchService,
            IMvcContext mvcContext,
            ILog logger)
        {
            Throw.IfNull(eventSearchService, nameof(eventSearchService));
            Throw.IfNull(mvcContext, nameof(mvcContext));
            Throw.IfNull(logger, nameof(logger));

            _eventSearchService = eventSearchService;
            _mvcContext         = mvcContext;
            _logger             = logger;
        }
Example #5
0
 public CleanupEventsController(IEventSearchService eventSearchService,
                                IContentService contentService,
                                IMediaService mediaService,
                                IDuplicatesService duplicatesService,
                                ILog log,
                                IUmbracoWrapper umbracoWrapper,
                                IDateTimeProvider dateTimeProvider)
 {
     _eventSearchService = eventSearchService;
     _contentService     = contentService;
     _mediaService       = mediaService;
     _duplicatesService  = duplicatesService;
     _log              = log;
     _umbracoWrapper   = umbracoWrapper;
     _dateTimeProvider = dateTimeProvider;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserEventsHelper"/> class.
 /// </summary>
 /// <param name="eventRepository">Provides the methods for event related operations on storage.</param>
 /// <param name="eventSearchService">Search service to filter and search events.</param>
 /// <param name="userEventSearchService">Search service to filter and search events for end user.</param>
 /// <param name="userGraphHelper">Helper to use Microsoft Graph users api.</param>
 /// <param name="eventGraphHelper">Helper to use Microsoft Graph events api.</param>
 /// <param name="notificationHelper">Helper to send notifications to user and team.</param>
 /// <param name="categoryHelper">Helper to bind category name by Id.</param>
 /// <param name="lnDTeamConfigurationRepository">Team configuration repository for storing and updating team information.</param>
 /// <param name="botOptions">Represents a set of key/value application configuration properties for bot.</param>
 /// <param name="localizer">The current culture's string localizer.</param>
 public UserEventsHelper(
     IEventRepository eventRepository,
     IEventSearchService eventSearchService,
     IUserEventSearchService userEventSearchService,
     IUserGraphHelper userGraphHelper,
     IEventGraphHelper eventGraphHelper,
     INotificationHelper notificationHelper,
     ICategoryHelper categoryHelper,
     ILnDTeamConfigurationRepository lnDTeamConfigurationRepository,
     IOptions <BotSettings> botOptions,
     IStringLocalizer <Strings> localizer)
 {
     this.eventRepository                = eventRepository;
     this.eventSearchService             = eventSearchService;
     this.userEventSearchService         = userEventSearchService;
     this.userGraphHelper                = userGraphHelper;
     this.eventGraphHelper               = eventGraphHelper;
     this.notificationHelper             = notificationHelper;
     this.categoryHelper                 = categoryHelper;
     this.lnDTeamConfigurationRepository = lnDTeamConfigurationRepository;
     this.botOptions = botOptions;
     this.localizer  = localizer;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamEventSearchService"/> class.
 /// </summary>
 /// <param name="eventSearchService">Event search provider to search and filter events.</param>
 /// <param name="botOptions">A set of key/value application configuration properties for activity handler.</param>
 /// <param name="filterQueryGenerator">Generates filter query for fetching events.</param>
 public TeamEventSearchService(IEventSearchService eventSearchService, IOptions <BotSettings> botOptions, IFilterQueryGeneratorFactory filterQueryGenerator)
 {
     this.eventSearchService   = eventSearchService;
     this.botOptions           = botOptions;
     this.filterQueryGenerator = filterQueryGenerator;
 }
Example #8
0
 public SearchEventsController(IEventSearchService eventSearchService,
                               IModelConverter modelConverter)
 {
     _eventSearchService = eventSearchService;
     _modelConverter     = modelConverter;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserEventSearchService"/> class.
 /// </summary>
 /// <param name="eventSearchService">Event search service to search and filter events.</param>
 /// <param name="filterQueryGenerator">Generates filter query for fetching events.</param>
 public UserEventSearchService(IEventSearchService eventSearchService, IFilterQueryGeneratorFactory filterQueryGenerator)
 {
     this.eventSearchService   = eventSearchService;
     this.filterQueryGenerator = filterQueryGenerator;
 }
Example #10
0
 public EventSearchController(IEventSearchService eventSearchService)
 {
     _eventSearchService = eventSearchService;
 }