/// <summary> /// Initializes a new instance of the <see cref="GrowActivityHandler"/> class. /// </summary> /// <param name="logger">Logger implementation to send logs to the logger service.</param> /// <param name="localizer">The current cultures' string localizer.</param> /// <param name="telemetryClient">The Application Insights telemetry client.</param> /// <param name="messagingExtensionHelper">Helper to send cards and display projects in messaging extension.</param> /// <param name="userState">State management object for maintaining user conversation state.</param> /// <param name="userDetailProvider">Provider instance to work with user data.</param> /// <param name="botOptions">A set of key/value application configuration properties for activity handler.</param> /// <param name="teamSkillStorageProvider">Team skill storage provider dependency injection.</param> /// <param name="projectStorageProvider">Project storage provider dependency injection.</param> /// <param name="projectSearchService">Search service helper to fetch projects based on filters and search criteria.</param> /// <param name="notificationHelper">Instance to send notifications to users.</param> /// <param name="teamStorageProvider">Provider for fetching information about team details from storage table.</param> public GrowActivityHandler( ILogger <GrowActivityHandler> logger, IStringLocalizer <Strings> localizer, TelemetryClient telemetryClient, IMessagingExtensionHelper messagingExtensionHelper, UserState userState, IUserDetailProvider userDetailProvider, IOptions <BotSettings> botOptions, ITeamSkillStorageProvider teamSkillStorageProvider, IProjectStorageProvider projectStorageProvider, IProjectSearchService projectSearchService, NotificationHelper notificationHelper, ITeamStorageProvider teamStorageProvider) { this.logger = logger; this.localizer = localizer; this.telemetryClient = telemetryClient; this.messagingExtensionHelper = messagingExtensionHelper; this.userState = userState; this.userDetailProvider = userDetailProvider; this.botOptions = botOptions ?? throw new ArgumentNullException(nameof(botOptions)); this.teamSkillStorageProvider = teamSkillStorageProvider; this.projectStorageProvider = projectStorageProvider; this.projectSearchService = projectSearchService; this.notificationHelper = notificationHelper; this.teamStorageProvider = teamStorageProvider; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationHelper"/> class. /// </summary> /// <param name="logger">Sends logs to the logger service.</param> /// <param name="botFrameworkHttpAdapter">Instance of bot framework HTTP adapter</param> /// <param name="aadOptions">A set of key/value application configuration properties with AAD settings.</param> /// <param name="botOptions">A set of key/value application configuration properties with bot settings.</param> /// <param name="userDetailProvider">Provider instance to work with user data.</param> /// <param name="localizer">The current cultures' string localizer.</param> public NotificationHelper( ILogger <NotificationHelper> logger, IBotFrameworkHttpAdapter botFrameworkHttpAdapter, IOptions <AzureActiveDirectorySettings> aadOptions, IOptions <BotSettings> botOptions, IUserDetailProvider userDetailProvider, IStringLocalizer <Strings> localizer) { this.logger = logger; this.botFrameworkHttpAdapter = botFrameworkHttpAdapter; this.aadOptions = aadOptions; this.botOptions = botOptions; this.userDetailProvider = userDetailProvider; this.localizer = localizer; }
/// <summary> /// UserDetailService /// </summary> public UserDetailService() { this.userDetailProvider = new UserDetailProvider(); }