Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DiagnosticController"/> class.
 /// </summary>
 /// <param name="env">The environment.</param>
 /// <param name="diagnosticClient">Diagnostic client.</param>
 /// <param name="emailNotificationService">Email notification service.</param>
 public DiagnosticController(IHostingEnvironment env, IDiagnosticClientService diagnosticClient, IEmailNotificationService emailNotificationService, IConfiguration configuration)
 {
     Env = env;
     DiagnosticClient         = diagnosticClient;
     EmailNotificationService = emailNotificationService;
     blackListedAscRegions    = configuration.GetValue <string>("BlackListedAscRegions", string.Empty).Replace(" ", string.Empty).Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
     diagAscHeaderValue       = configuration.GetValue <string>("DiagAscHeaderValue");
     this.config = configuration;
 }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DiagnosticController"/> class.
        /// </summary>
        /// <param name="env">The environment.</param>
        /// <param name="diagnosticClient">Diagnostic client.</param>
        /// <param name="emailNotificationService">Email notification service.</param>
        public DiagnosticController(IHostingEnvironment env, IDiagnosticClientService diagnosticClient, IEmailNotificationService emailNotificationService, IConfiguration configuration, IResourceConfigService resConfigService, IAppSvcUxDiagnosticDataService appSvcUxDiagnosticDataService)
        {
            Env = env;
            DiagnosticClient         = diagnosticClient;
            EmailNotificationService = emailNotificationService;
            forbiddenAscRegions      = configuration.GetValue <string>("ForbiddenAscRegions", string.Empty).Replace(" ", string.Empty).Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            if (!forbiddenAscRegions.Any())
            {
                // will remove once production config is updated to use the more racially neutral term `ForbiddenAscRegions`
                forbiddenAscRegions = configuration.GetValue <string>("BlackListedAscRegions", string.Empty).Replace(" ", string.Empty).Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            }

            forbiddenDiagAscHeaderValue = configuration.GetValue <string>("DiagAscHeaderValue");
            this.config = configuration;
            this.resourceConfigService    = resConfigService;
            AppSvcUxDiagnosticDataService = appSvcUxDiagnosticDataService;
        }
Example #3
0
 public DiagnosticController(IDiagnosticClientService diagnosticClient)
 {
     this._diagnosticClient = diagnosticClient;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FreshChatClientService"/> class.
 /// </summary>
 /// <param name="configuration">Will be passed via DI.</param>
 /// <param name="diagnosticClient">Will be passed via DI. Used to log messages to Kusto.</param>
 public FreshChatClientService(IConfiguration configuration, IDiagnosticClientService diagnosticClient)
 {
     LoadConfigurations(configuration);
     _diagnosticClient = diagnosticClient;
     InitializeHttpClient();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DiagnosticObserverClientService"/> class.
 /// Primary class to get site and stamp information from diagnostic service.
 /// </summary>
 /// <param name="diagnosticService">Injected DiagnosticService instance.</param>
 public DiagnosticObserverClientService(IDiagnosticClientService diagnosticService)
 {
     _diagnosticClientService = diagnosticService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="InsightsController"/> class.
 /// </summary>
 /// <param name="diagnosticClientService">DiagnosticRole service.</param>
 /// <param name="observer">Observer service.</param>
 public InsightsController(IDiagnosticClientService diagnosticClientService, IObserverClientService observer)
 {
     this.diagnosticClientService = diagnosticClientService;
     this.observerService         = observer;
 }
 public SelfHelpContentController(IMemoryCache cache, ISelfHelpContentService selfHelpContentService, IDiagnosticClientService diagnosticClient)
 {
     _cache = cache;
     _selfHelpContentService = selfHelpContentService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DiagnosticController"/> class.
 /// </summary>
 /// <param name="env">The environment.</param>
 /// <param name="diagnosticClient">Diagnostic client.</param>
 /// <param name="emailNotificationService">Email notification service.</param>
 public DiagnosticController(IHostingEnvironment env, IDiagnosticClientService diagnosticClient, IEmailNotificationService emailNotificationService)
 {
     Env = env;
     DiagnosticClient         = diagnosticClient;
     EmailNotificationService = emailNotificationService;
 }
Example #9
0
 public GraphController(IGraphClientService graphClientService, IDiagnosticClientService diagnosticClient)
 {
     _graphClientService = graphClientService;
 }