Пример #1
0
 public void Setup()
 {
   SuperCheapIOC.Reset();
   _statsd = new Statsd();
   _listener = new InAppListener();
   _backend = new InAppBackend();
   _intervalService = new ControllableIntervalService();
   _outputBlock = new OutputBufferBlock<GraphiteLine>();
   _client = new StatsdClient.Statsd("", 0, outputChannel : new InAppListenerOutputChannel(_listener));
   _statsd.AddListener(_listener);
   _statsd.AddBackend(_backend, _systemMetrics, "testing");
   _systemMetrics = new Mock<ISystemMetricsService>().Object;
 }
 public InAppListenerOutputChannel(InAppListener listener)
 {
     _listener = listener;
 }
 public InAppListenerOutputChannel(InAppListener listener)
 {
   _listener = listener;
 }