Beispiel #1
0
 public DashboardReporter(StrykerOptions options, IDashboardClient dashboardClient = null, ILogger <DashboardReporter> logger = null, TextWriter consoleWriter = null)
 {
     _options         = options;
     _dashboardClient = dashboardClient ?? new DashboardClient(options);
     _logger          = logger ?? ApplicationLogging.LoggerFactory.CreateLogger <DashboardReporter>();
     _consoleWriter   = consoleWriter ?? Console.Out;
 }
Beispiel #2
0
 public DashboardReporter(StrykerOptions options, IDashboardClient dashboardClient = null, ILogger <DashboardReporter> logger = null, IChalk chalk = null)
 {
     _options         = options;
     _dashboardClient = dashboardClient ?? new DashboardClient(options);
     _logger          = logger ?? ApplicationLogging.LoggerFactory.CreateLogger <DashboardReporter>();
     _chalk           = chalk ?? new Chalk();
     _logger          = ApplicationLogging.LoggerFactory.CreateLogger <DashboardReporter>();
 }
Beispiel #3
0
 public DashboardReporter(StrykerOptions options, IDashboardClient dashboardClient = null, ILogger <DashboardReporter> logger = null,
                          IAnsiConsole console = null, IWebbrowserOpener processWrapper = null)
 {
     _options         = options;
     _dashboardClient = dashboardClient ?? new DashboardClient(options);
     _logger          = logger ?? ApplicationLogging.LoggerFactory.CreateLogger <DashboardReporter>();
     _console         = console ?? AnsiConsole.Console;
     _processWrapper  = processWrapper ?? new WebbrowserOpener();
 }
 public DashboardMiddleware(RequestDelegate next,
                            IGrainFactory grainFactory,
                            IOptions <DashboardOptions> options,
                            DashboardLogger logger)
 {
     this.options = options;
     this.logger  = logger;
     this.next    = next;
     client       = new DashboardClient(grainFactory);
 }
Beispiel #5
0
        public void LoadPlugins()
        {
            var s = Stopwatch.StartNew();

            LicensingManager = LoadPlugin("Licensing.dll", typeof(ILicensingManager)) as ILicensingManager;
            DashboardClient  = LoadPlugin("DashboardClient.dll", typeof(IDashboardClient)) as IDashboardClient;
            s.Stop();

            Debug.WriteLine($"Plugin load took {s.ElapsedMilliseconds}ms");
        }
        public DiffMutantFilter(StrykerOptions options = null, IDiffProvider diffProvider = null, IDashboardClient dashboardClient = null, IGitInfoProvider branchProvider = null)
        {
            _logger = ApplicationLogging.LoggerFactory.CreateLogger <DiffMutantFilter>();

            _dashboardClient = dashboardClient ?? new DashboardClient(options);
            _branchProvider  = branchProvider ?? new GitInfoProvider(options);
            _options         = options;

            if (options.CompareToDashboard)
            {
                _baseline = GetBaseline().Result;
            }

            _diffResult = diffProvider.ScanDiff();

            if (_diffResult != null)
            {
                _logger.LogInformation("{0} files changed", _diffResult.ChangedFiles.Count);
                foreach (var changedFile in _diffResult.ChangedFiles)
                {
                    _logger.LogInformation("Changed file {0}", changedFile);
                }
            }
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="AlertClientRepository" /> class.
        /// </summary>
        /// <param name="applicationSettings">The application settings.</param>
        public AlertClientRepository(IApplicationSettings applicationSettings)
        {
            if (applicationSettings != null)
            {
                this.applicationSettings = applicationSettings;
                this.alertClient = DIContainer.Instance.Resolve<IAlertClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.PersonNotificationServiceBaseAddress) });

                this.messageClient = DIContainer.Instance.Resolve<IMessageClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.PersonNotificationServiceBaseAddress) });

                this.alertTemplateClient = DIContainer.Instance.Resolve<IAlertTemplateClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.PersonNotificationServiceBaseAddress) });

                this.messageTemplateClient = DIContainer.Instance.Resolve<IMessageTemplatesClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.PersonNotificationServiceBaseAddress) });

                this.dashboardClient = DIContainer.Instance.Resolve<IDashboardClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.PersonNotificationServiceBaseAddress) });

                this.alertTypeClient = DIContainer.Instance.Resolve<IAlertTypeClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.PersonNotificationServiceBaseAddress) });

                this.personAlertClient = DIContainer.Instance.Resolve<IPersonAlertsClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.PersonNotificationServiceBaseAddress) });

                this.personMessageClient = DIContainer.Instance.Resolve<IPersonMessageClient>(new ResolverOverride[] { new ParameterOverride(BaseAddressParameterName, applicationSettings.PersonNotificationServiceBaseAddress) });
            }
        }
Beispiel #8
0
 public DashboardBaselineProvider(StrykerOptions options, IDashboardClient client = null)
 {
     _client = client ?? new DashboardClient(options);
 }
Beispiel #9
0
 public DashboardController(IOrleansHost host)
 {
     _client = host.Dashboard;
 }