/// <summary>
 /// Initializes a new instance of the <see cref="MessagesController"/> class.
 /// </summary>
 /// <param name="bot">The Icebreaker bot instance</param>
 /// <param name="telemetryClient">The telemetry client instance</param>
 public MessagesController(IcebreakerBot bot, TelemetryClient telemetryClient, IMediator mediator, BotRepository repository)
 {
     this.bot             = bot;
     this.telemetryClient = telemetryClient;
     _mediator            = mediator;
     _repository          = repository;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MessagesController"/> class.
 /// </summary>
 /// <param name="bot">The Icebreaker bot instance</param>
 /// <param name="telemetryClient">The telemetry client instance</param>
 public MessagesController(IcebreakerBot bot, TelemetryClient telemetryClient)
 {
     this.bot                 = bot;
     this.telemetryClient     = telemetryClient;
     this.adminMessageHandler = new AdminMessageHandler(bot, telemetryClient);
     this.debugMessageHandler = new DebugMessageHandler();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MessagesController"/> class.
 /// </summary>
 /// <param name="bot">The Icebreaker bot instance</param>
 /// <param name="telemetryClient">The telemetry client instance</param>
 public MessagesController(IcebreakerBot bot, TelemetryClient telemetryClient)
 {
     this.bot             = bot;
     this.telemetryClient = telemetryClient;
 }