Пример #1
0
        public void Setup()
        {
            TestCommon.ResetInternalStaticCaches();
            _testReceiver = new _TestReceiver();
            var serviceBundle = TestCommon.CreateServiceBundleWithCustomHttpManager(null, clientId: ClientId);

            _telemetryManager = new TelemetryManager(serviceBundle.Config, serviceBundle.PlatformProxy, _testReceiver.HandleTelemetryEvents);
            _trackingEvent    = new _TestEvent("tracking event", CorrelationId);
        }
Пример #2
0
        public void Setup()
        {
            TestCommon.ResetInternalStaticCaches();
            _testReceiver = new _TestReceiver();
            var serviceBundle = TestCommon.CreateServiceBundleWithCustomHttpManager(
                null,
                clientId: ClientId, telemetryCallback: _testReceiver.HandleTelemetryEvents);

            _requestContext = new RequestContext(serviceBundle, Guid.NewGuid());
            _trackingEvent  = new _TestEvent("tracking event", CorrelationId);
        }
Пример #3
0
 add => _TestEvent    = (TestEventHandler?)Delegate.Combine(_TestEvent, value);
Пример #4
0
 remove => _TestEvent = (TestEventHandler?)Delegate.Remove(_TestEvent, value);
Пример #5
0
 public void Setup()
 {
     _testReceiver     = new _TestReceiver();
     _telemetryManager = new TelemetryManager(_testReceiver);
     _trackingEvent    = new _TestEvent("tracking event");
 }