/// <summary>
 /// Initializes a new instance of the <see cref="RequestController"/> class.
 /// </summary>
 /// <param name="requestRepository">The request repository.</param>
 /// <param name="agentRepository">The agent repository.</param>
 /// <param name="channelRepository">The channel repository.</param>
 /// <param name="channelMappingRepository">The channel mapping repository.</param>
 /// <param name="logger">The logger.</param>
 /// <param name="localizer">The localizer to use for strings.</param>
 /// <param name="azureADOptions">Azure AD configuration options.</param>
 /// <param name="botOptions">Bot configuration options.</param>
 public RequestController(
     IRequestRepository <CosmosItemKey> requestRepository,
     IAgentRepository <CosmosItemKey> agentRepository,
     IChannelRepository <CosmosItemKey> channelRepository,
     IChannelMappingRepository <CosmosItemKey> channelMappingRepository,
     ILogger <RequestController> logger,
     IStringLocalizer <SharedResources> localizer,
     IOptions <AzureADSettings> azureADOptions,
     IOptions <BotSettings> botOptions)
 {
     this.requestRepository        = requestRepository;
     this.agentRepository          = agentRepository;
     this.channelRepository        = channelRepository;
     this.channelMappingRepository = channelMappingRepository;
     this.logger         = logger;
     this.localizer      = localizer;
     this.azureADOptions = azureADOptions;
     this.botOptions     = botOptions;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CategoryController"/> class.
 /// </summary>
 /// <param name="channelMappingRepository">The channel mapping repository.</param>
 public CategoryController(IChannelMappingRepository <CosmosItemKey> channelMappingRepository)
 {
     this.channelMappingRepository = channelMappingRepository;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelController"/> class.
 /// </summary>
 /// <param name="channelRepository">The channel repository.</param>
 /// <param name="channelMappingRepository">The channel mapping repository.</param>
 /// <param name="logger">The logger.</param>
 public ChannelController(IChannelRepository <CosmosItemKey> channelRepository, IChannelMappingRepository <CosmosItemKey> channelMappingRepository, ILogger <ChannelController> logger)
 {
     this.channelRepository        = channelRepository;
     this.channelMappingRepository = channelMappingRepository;
     this.logger = logger;
 }