/// <summary> /// Initializes a new instance of the <see cref="LnDTeamController"/> class. /// </summary> /// <param name="logger">The ILogger object which logs errors and information</param> /// <param name="telemetryClient">The Application Insights telemetry client</param> /// <param name="teamInfoHelper">The team info helper dependency injection</param> public LnDTeamController( ILogger <CategoryController> logger, TelemetryClient telemetryClient, ITeamInfoHelper teamInfoHelper) : base(telemetryClient) { this.logger = logger; this.teamInfoHelper = teamInfoHelper; }
/// <summary> /// Initializes a new instance of the <see cref="MustBeLnDTeamMemberHandler"/> class. /// </summary> /// <param name="memoryCache">Memory cache instance for caching authorization result.</param> /// <param name="botOptions">A set of key/value application configuration properties for activity handler.</param> /// <param name="teamsInfoHelper">Provides method to fetch bot installation details for team.</param> /// <param name="httpContextAccessor">HTTP context accessor to get HTTP context object.</param> public MustBeLnDTeamMemberHandler( IMemoryCache memoryCache, IOptions <BotSettings> botOptions, ITeamInfoHelper teamsInfoHelper, IHttpContextAccessor httpContextAccessor) { this.memoryCache = memoryCache; this.httpContextAccessor = httpContextAccessor; this.botOptions = botOptions ?? throw new ArgumentNullException(nameof(botOptions)); this.teamsInfoHelper = teamsInfoHelper; }