/// <summary>
 /// Initializes a new instance of the <see cref="AppLifecycleHandler"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="adaptiveCardService">Instance of adaptive card service to create and get adaptive cards.</param>
 public AppLifecycleHandler(
     ILogger <AppLifecycleHandler> logger,
     IAdaptiveCardService adaptiveCardService)
 {
     this.logger = logger;
     this.adaptiveCardService = adaptiveCardService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AppLifecycleHandler"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="adaptiveCardService">Instance of adaptive card service to create and get adaptive cards.</param>
 /// <param name="repositoryAccessors">The instance of repository accessors.</param>
 public AppLifecycleHandler(
     ILogger <AppLifecycleHandler> logger,
     IAdaptiveCardService adaptiveCardService,
     IRepositoryAccessors repositoryAccessors)
 {
     this.logger = logger;
     this.adaptiveCardService = adaptiveCardService;
     this.repositoryAccessors = repositoryAccessors;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TimesheetHelper"/> class.
 /// </summary>
 /// <param name="botOptions">A set of key/value application configuration properties.</param>
 /// <param name="repositoryAccessors">The instance of repository accessors.</param>
 /// <param name="timesheetMapper">The instance of timesheet mapper.</param>
 /// <param name="logger">The ILogger object which logs errors and information.</param>
 /// <param name="notificationHelper">Notification helper instance to send notifications to user.</param>
 /// <param name="adaptiveCardService">Instance of adaptive card service to construct notification cards.</param>
 public TimesheetHelper(
     IOptions <BotSettings> botOptions,
     IRepositoryAccessors repositoryAccessors,
     ITimesheetMapper timesheetMapper,
     ILogger <TimesheetHelper> logger,
     INotificationHelper notificationHelper,
     IAdaptiveCardService adaptiveCardService)
 {
     this.repositoryAccessors = repositoryAccessors;
     this.timesheetMapper     = timesheetMapper;
     this.logger              = logger;
     this.botOptions          = botOptions;
     this.notificationHelper  = notificationHelper;
     this.adaptiveCardService = adaptiveCardService;
 }