Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompanyCommunicatorBot"/> class.
 /// </summary>
 /// <param name="teamsDataCapture">Teams data capture service.</param>
 /// <param name="teamsFileUpload">change this.</param>
 public CompanyCommunicatorBot(
     TeamsDataCapture teamsDataCapture,
     TeamsFileUpload teamsFileUpload)
 {
     this.teamsDataCapture = teamsDataCapture;
     this.teamsFileUpload  = teamsFileUpload;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompanyCommunicatorBot"/> class.
 /// </summary>
 /// <param name="teamsDataCapture">Teams data capture service.</param>
 /// <param name="teamsFileUpload">change this.</param>
 /// <param name="localizer">Localization service.</param>
 public CompanyCommunicatorBot(
     TeamsDataCapture teamsDataCapture,
     TeamsFileUpload teamsFileUpload,
     IStringLocalizer <Strings> localizer)
 {
     this.teamsDataCapture = teamsDataCapture ?? throw new ArgumentNullException(nameof(teamsDataCapture));
     this.teamsFileUpload  = teamsFileUpload ?? throw new ArgumentNullException(nameof(teamsFileUpload));
     this.localizer        = localizer ?? throw new ArgumentNullException(nameof(localizer));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthorTeamsActivityHandler"/> class.
 /// </summary>
 /// <param name="teamsFileUpload">File upload service.</param>
 /// <param name="userDataService">User data service.</param>
 /// <param name="appSettingsService">App Settings service.</param>
 /// <param name="localizer">Localization service.</param>
 public AuthorTeamsActivityHandler(
     TeamsFileUpload teamsFileUpload,
     IUserDataService userDataService,
     IAppSettingsService appSettingsService,
     IStringLocalizer <Strings> localizer)
 {
     this.userDataService    = userDataService ?? throw new ArgumentNullException(nameof(userDataService));
     this.teamsFileUpload    = teamsFileUpload ?? throw new ArgumentNullException(nameof(teamsFileUpload));
     this.appSettingsService = appSettingsService ?? throw new ArgumentNullException(nameof(appSettingsService));
     this.localizer          = localizer ?? throw new ArgumentNullException(nameof(localizer));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthorTeamsActivityHandler"/> class.
 /// </summary>
 /// <param name="teamsFileUpload">File upload service.</param>
 /// <param name="userDataService">User data service.</param>
 /// <param name="appSettingsService">App Settings service.</param>
 /// <param name="notificationDataRepository">Notification data repository service that deals with the table storage in azure.</param>
 /// <param name="channelDataRepository">ChannelDataRepository.</param>
 /// <param name="adaptiveCardCreator">adaptiveCardCreator .</param>
 /// <param name="templateDataRepository">templateD ataRepository.</param>
 /// <param name="localizer">Localization service.</param>
 public AuthorTeamsActivityHandler(
     TeamsFileUpload teamsFileUpload,
     IUserDataService userDataService,
     IAppSettingsService appSettingsService,
     INotificationDataRepository notificationDataRepository,
     IChannelDataRepository channelDataRepository,
     AdaptiveCardCreator adaptiveCardCreator,
     ITemplateDataRepository templateDataRepository,
     IStringLocalizer <Strings> localizer)
 {
     this.userDataService            = userDataService ?? throw new ArgumentNullException(nameof(userDataService));
     this.teamsFileUpload            = teamsFileUpload ?? throw new ArgumentNullException(nameof(teamsFileUpload));
     this.appSettingsService         = appSettingsService ?? throw new ArgumentNullException(nameof(appSettingsService));
     this.notificationDataRepository = notificationDataRepository ?? throw new ArgumentNullException(nameof(notificationDataRepository));
     this.adaptiveCardCreator        = adaptiveCardCreator ?? throw new ArgumentNullException(nameof(adaptiveCardCreator));
     this.templateDataRepository     = templateDataRepository ?? throw new ArgumentNullException(nameof(templateDataRepository));
     this.channelDataRepository      = channelDataRepository ?? throw new ArgumentNullException(nameof(channelDataRepository));
     this.localizer = localizer ?? throw new ArgumentNullException(nameof(localizer));
 }