/// <summary> /// Initializes a new instance of the <see cref="IcebreakerBotDataProvider"/> class. /// </summary> /// <param name="telemetryClient">The telemetry client to use</param> /// <param name="secretsHelper">Secrets helper to fetch secrets</param> public IcebreakerBotDataProvider(TelemetryClient telemetryClient, ISecretsHelper secretsHelper) { this.telemetryClient = telemetryClient; this.secretsHelper = secretsHelper; this.initializeTask = new Lazy <Task>(() => this.InitializeAsync()); }
/// <summary> /// Initializes a new instance of the <see cref="ProcessNowController"/> class. /// </summary> /// <param name="matchingService">Matching service contains logic to pair and match users</param> /// <param name="botCredentials">The bot AAD credentials</param> /// <param name="secretsHelper">Secrets helper to fetch secrets</param> public ProcessNowController(IMatchingService matchingService, MicrosoftAppCredentials botCredentials, ISecretsHelper secretsHelper) { this.matchingService = matchingService; this.botCredentials = botCredentials; this.apiKey = secretsHelper.Key; }