Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GoalDeletionBackgroundService"/> class.
 /// BackgroundService class that inherits IHostedService and implements the methods related to delete personal and team goals.
 /// </summary>
 /// <param name="logger">Instance to send logs to the Application Insights service.</param>
 /// <param name="personalGoalStorageProvider">Storage provider for working with personal goal data in storage.</param>
 /// <param name="teamGoalStorageProvider">Storage provider for working with team goal data in storage.</param>
 public GoalDeletionBackgroundService(
     ILogger <GoalDeletionBackgroundService> logger,
     IPersonalGoalStorageProvider personalGoalStorageProvider,
     ITeamGoalStorageProvider teamGoalStorageProvider)
 {
     this.logger = logger;
     this.personalGoalStorageProvider = personalGoalStorageProvider;
     this.teamGoalStorageProvider     = teamGoalStorageProvider;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamGoalController"/> class.
 /// </summary>
 /// <param name="confidentialClientApp">Instance of ConfidentialClientApplication class.</param>
 /// <param name="logger">Instance to send logs to the Application Insights service.</param>
 /// <param name="azureAdOptions">Instance of IOptions to read data from application configuration.</param>
 /// <param name="teamGoalStorageProvider">Storage provider for working with team goal data in Microsoft Azure Table storage</param>
 /// <param name="tokenAcquisitionHelper">Instance of token acquisition helper to access token.</param>
 public TeamGoalController(
     IConfidentialClientApplication confidentialClientApp,
     ILogger <TeamGoalController> logger,
     IOptions <AzureAdOptions> azureAdOptions,
     ITeamGoalStorageProvider teamGoalStorageProvider,
     TokenAcquisitionHelper tokenAcquisitionHelper)
     : base(confidentialClientApp, azureAdOptions, logger, tokenAcquisitionHelper)
 {
     this.logger = logger;
     this.teamGoalStorageProvider = teamGoalStorageProvider;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActivityHelper"/> class.
 /// </summary>
 /// <param name="logger">Instance to send logs to the Application Insights service.</param>
 /// <param name="localizer">The current cultures' string localizer.</param>
 /// <param name="teamGoalStorageProvider">Storage provider for working with team goal data in storage.</param>
 /// <param name="personalGoalSearchService">Personal goal search service which will help in retrieving aligned goals information.</param>
 public ActivityHelper(
     ILogger <ActivityHelper> logger,
     IStringLocalizer <Strings> localizer,
     ITeamGoalStorageProvider teamGoalStorageProvider,
     IPersonalGoalSearchService personalGoalSearchService)
 {
     this.logger    = logger;
     this.localizer = localizer;
     this.teamGoalStorageProvider   = teamGoalStorageProvider;
     this.personalGoalSearchService = personalGoalSearchService;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GoalReminderNotificationService"/> 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="personalGoalStorageProvider">Storage provider for working with personal goal data in storage.</param>
 /// <param name="teamGoalStorageProvider">Storage provider for working with team goal data in storage.</param>
 /// <param name="goalReminderActivityHelper">Goal reminder activity helper to send reminder in team and personal scope.</param>
 public GoalReminderNotificationService(
     ILogger <GoalReminderNotificationService> logger,
     IPersonalGoalStorageProvider personalGoalStorageProvider,
     ITeamGoalStorageProvider teamGoalStorageProvider,
     IGoalReminderActivityHelper goalReminderActivityHelper)
 {
     this.logger = logger;
     this.personalGoalStorageProvider = personalGoalStorageProvider;
     this.teamGoalStorageProvider     = teamGoalStorageProvider;
     this.goalReminderActivityHelper  = goalReminderActivityHelper;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GoalHelper"/> class.
 /// </summary>
 /// <param name="logger">Instance to send logs to the Application Insights service.</param>
 /// <param name="localizer">The current cultures' string localizer.</param>
 /// <param name="options">A set of key/value application configuration properties for activity handler.</param>
 /// <param name="personalGoalStorageProvider">Storage provider for working with personal goal data in storage.</param>
 /// <param name="personalGoalNoteStorageProvider">Storage provider for working with personal goal note data in storage</param>
 /// <param name="teamGoalStorageProvider">Storage provider for working with team goal data in storage.</param>
 public GoalHelper(
     ILogger <GoalHelper> logger,
     IStringLocalizer <Strings> localizer,
     IOptions <GoalTrackerActivityHandlerOptions> options,
     IPersonalGoalStorageProvider personalGoalStorageProvider,
     IPersonalGoalNoteStorageProvider personalGoalNoteStorageProvider,
     ITeamGoalStorageProvider teamGoalStorageProvider)
 {
     this.logger    = logger;
     this.localizer = localizer;
     this.options   = options;
     this.personalGoalStorageProvider     = personalGoalStorageProvider;
     this.personalGoalNoteStorageProvider = personalGoalNoteStorageProvider;
     this.teamGoalStorageProvider         = teamGoalStorageProvider;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GoalReminderActivityHelper"/> 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="localizer">The current cultures' string localizer.</param>
 /// <param name="options">A set of key/value application configuration properties for activity handler.</param>
 /// <param name="microsoftAppCredentials">Instance for Microsoft application credentials.</param>
 /// <param name="adapter">An instance of bot adapter.</param>
 /// <param name="personalGoalStorageProvider">Storage provider for working with personal goal data in storage.</param>
 /// <param name="personalGoalNoteStorageProvider">Storage provider for working with personal goal note data in storage</param>
 /// <param name="teamGoalStorageProvider">Storage provider for working with team goal data in storage.</param>
 /// <param name="goalHelper">Instance of class that handles goal helper methods.</param>
 public GoalReminderActivityHelper(
     ILogger <GoalReminderActivityHelper> logger,
     IStringLocalizer <Strings> localizer,
     IOptions <GoalTrackerActivityHandlerOptions> options,
     MicrosoftAppCredentials microsoftAppCredentials,
     IBotFrameworkHttpAdapter adapter,
     IPersonalGoalStorageProvider personalGoalStorageProvider,
     IPersonalGoalNoteStorageProvider personalGoalNoteStorageProvider,
     ITeamGoalStorageProvider teamGoalStorageProvider,
     GoalHelper goalHelper)
 {
     this.logger    = logger;
     this.localizer = localizer;
     this.options   = options;
     this.microsoftAppCredentials = microsoftAppCredentials;
     this.adapter = adapter;
     this.personalGoalStorageProvider     = personalGoalStorageProvider;
     this.personalGoalNoteStorageProvider = personalGoalNoteStorageProvider;
     this.teamGoalStorageProvider         = teamGoalStorageProvider;
     this.goalHelper = goalHelper;
 }