/// <summary> /// Initializes a new instance of the <see cref="PersonalGoalNoteController"/> 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="personalGoalNoteStorageProvider">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> /// <param name="cardHelper">Instance of class that handles card create/update helper methods.</param> /// <param name="backgroundTaskWrapper">Instance of backgroundTaskWrapper to run a background task.</param> public PersonalGoalNoteController( IConfidentialClientApplication confidentialClientApp, ILogger <PersonalGoalNoteController> logger, IOptions <AzureAdOptions> azureAdOptions, IPersonalGoalNoteStorageProvider personalGoalNoteStorageProvider, TokenAcquisitionHelper tokenAcquisitionHelper, CardHelper cardHelper, BackgroundTaskWrapper backgroundTaskWrapper) : base(confidentialClientApp, azureAdOptions, logger, tokenAcquisitionHelper) { this.logger = logger; this.personalGoalNoteStorageProvider = personalGoalNoteStorageProvider; this.cardHelper = cardHelper; this.backgroundTaskWrapper = backgroundTaskWrapper; }
/// <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; }