/// <summary>
 /// Initializes a new instance of the <see cref="ScrumStatusActivityHandler"/> 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="telemetryClient">The Application Insights telemetry client.</param>
 /// <param name="options">A set of key/value application configuration properties.</param>
 /// <param name="scrumStorageProvider">Scrum storage provider to maintain data in Microsoft Azure table storage.</param>
 /// <param name="scrumStatusStorageProvider">Scrum status storage provider to maintain data in Microsoft Azure table storage.</param>
 /// <param name="scrumConfigurationStorageProvider">Scrum configuration storage provider to maintain data in Microsoft Azure table storage.</param>
 /// <param name="tokenHelper">Generating custom JWT token and retrieving access token for user.</param>
 /// <param name="cardHelper">Instance of class that handles card create/update helper methods.</param>
 /// <param name="activityHelper">Instance of class that handles Bot activity helper methods.</param>
 /// <param name="scrumHelper">Instance of class that handles scrum helper methods.</param>
 public ScrumStatusActivityHandler(
     ILogger <ScrumStatusActivityHandler> logger,
     IStringLocalizer <Strings> localizer,
     TelemetryClient telemetryClient,
     IOptions <ScrumStatusActivityHandlerOptions> options,
     IScrumStorageProvider scrumStorageProvider,
     IScrumStatusStorageProvider scrumStatusStorageProvider,
     IScrumConfigurationStorageProvider scrumConfigurationStorageProvider,
     ITokenHelper tokenHelper,
     CardHelper cardHelper,
     ActivityHelper activityHelper,
     ScrumHelper scrumHelper)
 {
     options                                = options ?? throw new ArgumentNullException(nameof(options));
     this.appBaseUri                        = options.Value.AppBaseUri;
     this.logger                            = logger;
     this.localizer                         = localizer;
     this.telemetryClient                   = telemetryClient;
     this.scrumStorageProvider              = scrumStorageProvider;
     this.scrumStatusStorageProvider        = scrumStatusStorageProvider;
     this.scrumConfigurationStorageProvider = scrumConfigurationStorageProvider;
     this.tokenHelper                       = tokenHelper;
     this.cardHelper                        = cardHelper;
     this.scrumHelper                       = scrumHelper;
     this.activityHelper                    = activityHelper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ScrumNotificationBackgroundService"/> class.
 /// </summary>
 /// <param name="scrumConfigurationStorageProvider">scrumConfigurationStorageProvider</param>
 /// <param name="startScrumActivityHelper">startScrumActivityHelper</param>
 /// <param name="logger">logger</param>
 public ScrumNotificationBackgroundService(
     IScrumConfigurationStorageProvider scrumConfigurationStorageProvider,
     IStartScrumActivityHelper startScrumActivityHelper,
     ILogger <ScrumNotificationBackgroundService> logger)
 {
     this.scrumConfigurationStorageProvider = scrumConfigurationStorageProvider;
     this.startScrumActivityHelper          = startScrumActivityHelper;
     this.logger = logger;
 }
Esempio n. 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="scrumConfigurationStorageProvider">Scrum configuration storage provider to maintain data in Microsoft Azure table storage.</param>
 /// <param name="scrumHelper">Instance of class that handles scrum helper methods.</param>
 public ActivityHelper(
     ILogger <ActivityHelper> logger,
     IStringLocalizer <Strings> localizer,
     IScrumConfigurationStorageProvider scrumConfigurationStorageProvider,
     ScrumHelper scrumHelper)
 {
     this.logger    = logger;
     this.localizer = localizer;
     this.scrumConfigurationStorageProvider = scrumConfigurationStorageProvider;
     this.scrumHelper = scrumHelper;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScrumHelper"/> class.
 /// </summary>
 /// <param name="logger">Instance to send logs to the Application Insights service.</param>
 /// <param name="scrumStorageProvider">Scrum storage provider to maintain data in Microsoft Azure table storage.</param>
 /// <param name="scrumStatusStorageProvider">Scrum status storage provider to maintain data in Microsoft Azure table storage.</param>
 /// <param name="scrumConfigurationStorageProvider">Scrum configuration storage provider to maintain data in Microsoft Azure table storage.</param>
 public ScrumHelper(
     ILogger <ScrumHelper> logger,
     IScrumStorageProvider scrumStorageProvider,
     IScrumStatusStorageProvider scrumStatusStorageProvider,
     IScrumConfigurationStorageProvider scrumConfigurationStorageProvider)
 {
     this.logger = logger;
     this.scrumStorageProvider              = scrumStorageProvider;
     this.scrumStatusStorageProvider        = scrumStatusStorageProvider;
     this.scrumConfigurationStorageProvider = scrumConfigurationStorageProvider;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScrumConfigurationController"/> class.
 /// </summary>
 /// <param name="logger">Instance to send logs to the Application Insights service.</param>
 /// <param name="botAdapter">Scrum For Channels bot adapter.</param>
 /// <param name="microsoftAppCredentials">Microsoft Application credentials for Bot/ME.</param>
 /// <param name="scrumConfigurationStorageProvider">Provider to store scrum configuration details in Azure Table Storage.</param>
 /// <param name="scrumHelper">Instance of class that handles scrum helper methods.</param>
 /// <param name="options">A set of key/value application configuration properties.</param>
 public ScrumConfigurationController(
     ILogger <ScrumConfigurationController> logger,
     BotFrameworkAdapter botAdapter,
     MicrosoftAppCredentials microsoftAppCredentials,
     IScrumConfigurationStorageProvider scrumConfigurationStorageProvider,
     ScrumHelper scrumHelper,
     IOptions <ScrumStatusActivityHandlerOptions> options)
     : base()
 {
     this.logger     = logger;
     this.botAdapter = botAdapter;
     this.appId      = microsoftAppCredentials != null ? microsoftAppCredentials.MicrosoftAppId : throw new ArgumentNullException(nameof(microsoftAppCredentials));
     this.scrumConfigurationStorageProvider = scrumConfigurationStorageProvider;
     this.scrumHelper = scrumHelper;
     this.options     = options ?? throw new ArgumentNullException(nameof(options));
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CardHelper"/> 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.</param>
 /// <param name="scrumHelper">Instance of class that handles scrum helper methods.</param>
 /// <param name="activityHelper">Instance of class that handles Bot activity helper methods.</param>
 /// <param name="scrumStorageProvider">Scrum storage provider to maintain data in Microsoft Azure table storage.</param>
 /// <param name="scrumStatusStorageProvider">Scrum status storage provider to maintain data in Microsoft Azure table storage.</param>
 /// <param name="scrumConfigurationStorageProvider">Scrum configuration storage provider to maintain data in Microsoft Azure table storage.</param>
 public CardHelper(
     ILogger <CardHelper> logger,
     IStringLocalizer <Strings> localizer,
     IOptions <ScrumStatusActivityHandlerOptions> options,
     ScrumHelper scrumHelper,
     ActivityHelper activityHelper,
     IScrumStorageProvider scrumStorageProvider,
     IScrumStatusStorageProvider scrumStatusStorageProvider,
     IScrumConfigurationStorageProvider scrumConfigurationStorageProvider)
 {
     this.options                           = options ?? throw new ArgumentNullException(nameof(options));
     this.appBaseUri                        = this.options.Value.AppBaseUri;
     this.logger                            = logger;
     this.localizer                         = localizer;
     this.scrumHelper                       = scrumHelper;
     this.activityHelper                    = activityHelper;
     this.scrumStorageProvider              = scrumStorageProvider;
     this.scrumStatusStorageProvider        = scrumStatusStorageProvider;
     this.scrumConfigurationStorageProvider = scrumConfigurationStorageProvider;
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StartScrumActivityHelper"/> class.
 /// </summary>
 /// <param name="scrumStorageProvider">Instance for scrumStorageProvider.</param>
 /// <param name="scrumConfigurationStorageProvider">Scrum configuration storage provider to maintain data in Microsoft Azure table storage.</param>
 /// <param name="cardHelper">Instance of card helper to send class details.</param>
 /// <param name="scrumHelper">Instance of class that handles scrum helper methods.</param>
 /// <param name="microsoftAppCredentials">Instance for Microsoft application credentials.</param>
 /// <param name="adapter">An instance of bot adapter.</param>
 /// <param name="options">A set of key/value application configuration properties for activity handler.</param>
 /// <param name="logger">An instance of logger to log exception in application insights.</param>
 /// <param name="localizer">The current cultures' string localizer.</param>
 public StartScrumActivityHelper(
     IScrumStorageProvider scrumStorageProvider,
     IScrumConfigurationStorageProvider scrumConfigurationStorageProvider,
     CardHelper cardHelper,
     ScrumHelper scrumHelper,
     MicrosoftAppCredentials microsoftAppCredentials,
     IBotFrameworkHttpAdapter adapter,
     IOptions <ScrumStatusActivityHandlerOptions> options,
     ILogger <StartScrumActivityHelper> logger,
     IStringLocalizer <Strings> localizer)
 {
     this.options = options;
     this.scrumStorageProvider = scrumStorageProvider;
     this.scrumConfigurationStorageProvider = scrumConfigurationStorageProvider;
     this.cardHelper              = cardHelper;
     this.scrumHelper             = scrumHelper;
     this.microsoftAppCredentials = microsoftAppCredentials;
     this.adapter   = adapter;
     this.logger    = logger;
     this.localizer = localizer;
 }