Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MessagingExtensionHelper"/> class.
 /// </summary>
 /// <param name="localizer">The current cultures' string localizer.</param>
 /// <param name="teamIdeaSearchService">The team ideas search service dependency injection.</param>
 /// <param name="categoryStorageProvider">The idea category storage provider.</param>
 /// <param name="options">>A set of key/value application configuration properties for activity handler.</param>
 public MessagingExtensionHelper(
     IStringLocalizer<Strings> localizer,
     IIdeaSearchService teamIdeaSearchService,
     ICategoryStorageProvider categoryStorageProvider,
     IOptions<BotSettings> options)
 {
     this.localizer = localizer;
     this.teamIdeaSearchService = teamIdeaSearchService;
     this.categoryStorageProvider = categoryStorageProvider;
     this.options = options;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CategoryController"/> class.
 /// </summary>
 /// <param name="categoryStorageProvider">Category storage provider instance.</param>
 /// <param name="teamIdeaSearchService">Idea search service provider instance.</param>
 /// <param name="logger">Logger implementation to send logs to the logger service.</param>
 /// <param name="telemetryClient">The Application Insights telemetry client.</param>
 public CategoryController(
     ICategoryStorageProvider categoryStorageProvider,
     IIdeaSearchService teamIdeaSearchService,
     ILogger <CategoryController> logger,
     TelemetryClient telemetryClient)
     : base(telemetryClient)
 {
     this.logger                = logger;
     this.storageProvider       = categoryStorageProvider;
     this.teamIdeaSearchService = teamIdeaSearchService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamIdeaController"/> class.
 /// </summary>
 /// <param name="logger">Logger implementation to send logs to the logger service.</param>
 /// <param name="telemetryClient">The Application Insights telemetry client.</param>
 /// <param name="ideaStorageHelper">Team post storage helper dependency injection.</param>
 /// <param name="ideaSearchService">The team post search service dependency injection.</param>
 /// <param name="teamCategoryStorageProvider">Team category storage provider dependency injection.</param>
 /// <param name="categoryStorageProvider">Category storage provider dependency injection.</param>
 public TeamIdeaController(
     ILogger <IdeaController> logger,
     TelemetryClient telemetryClient,
     IIdeaStorageHelper ideaStorageHelper,
     IIdeaSearchService ideaSearchService,
     ITeamCategoryStorageProvider teamCategoryStorageProvider,
     ICategoryStorageProvider categoryStorageProvider)
     : base(telemetryClient)
 {
     this.logger                      = logger;
     this.ideaStorageHelper           = ideaStorageHelper;
     this.ideaSearchService           = ideaSearchService;
     this.teamCategoryStorageProvider = teamCategoryStorageProvider;
     this.categoryStorageProvider     = categoryStorageProvider;
 }