Beispiel #1
0
        public SpectatorService(ISpectatorConfiguration configuration, IQueryableSourceFactory queryableSourceFactory, IMetricPublisher publisher, IMetricFormatter metricFormatter)
        {
            _cancellationTokenSource = new CancellationTokenSource();
            _eventLoopTask           = new Task(BeginSpectating, _cancellationTokenSource.Token);

            _configuration          = configuration;
            _queryableSourceFactory = queryableSourceFactory;
            _publisher       = publisher;
            _metricFormatter = metricFormatter;
        }
        public SpectatorService(ISpectatorConfiguration configuration, IQueryableSourceFactory queryableSourceFactory, IMetricPublisher publisher, IMetricFormatter metricFormatter)
        {
            _cancellationTokenSource = new CancellationTokenSource();
            _eventLoopTask = new Task(BeginSpectating, _cancellationTokenSource.Token);

            _configuration = configuration;
            _queryableSourceFactory = queryableSourceFactory;
            _publisher = publisher;
            _metricFormatter = metricFormatter;
        }
 public SpectatorServiceTestHarness(ISpectatorConfiguration configuration, IQueryableSourceFactory queryableSourceFactory,
     IMetricPublisher publisher, IMetricFormatter metricFormatter) : base(configuration, queryableSourceFactory, publisher, metricFormatter)
 {
 }
Beispiel #4
0
 public SpectatorServiceTestHarness(ISpectatorConfiguration configuration, IQueryableSourceFactory queryableSourceFactory,
                                    IMetricPublisher publisher, IMetricFormatter metricFormatter) : base(configuration, queryableSourceFactory, publisher, metricFormatter)
 {
 }
 public DefaultMetricProcessor(IMetricConsumer consumer, IMetricPublisher publisher)
 {
     this.consumer  = consumer;
     this.publisher = publisher;
 }