public VSTelemetryActivityLogger(IVsTelemetryService service) : base(assertIsForeground: true)
        {
            _service = service;
            _pendingActivities = new ConcurrentDictionary<int, TelemetryActivity>(concurrencyLevel: 2, capacity: 10);

            // Fetch the session synchronously on the UI thread; if this doesn't happen before we try using this on
            // the background thread then we will experience hangs like we see in this bug:
            // https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?_a=edit&id=190808
            var unused = TelemetryHelper.DefaultTelemetrySession;
        }
Esempio n. 2
0
        public VSTelemetryActivityLogger(IVsTelemetryService service) : base(assertIsForeground: true)
        {
            _service           = service;
            _pendingActivities = new ConcurrentDictionary <int, TelemetryActivity>(concurrencyLevel: 2, capacity: 10);

            // Fetch the session synchronously on the UI thread; if this doesn't happen before we try using this on
            // the background thread then we will experience hangs like we see in this bug:
            // https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?_a=edit&id=190808
            var unused = TelemetryHelper.DefaultTelemetrySession;
        }
Esempio n. 3
0
 public VSTelemetryLogger(IVsTelemetryService service)
 {
     _service = service;
     _session = service.GetDefaultSession();
 }
 public VSTelemetryActivityLogger(IVsTelemetryService service) : base(assertIsForeground: true)
 {
     _service           = service;
     _pendingActivities = new ConcurrentDictionary <int, TelemetryActivity>(concurrencyLevel: 2, capacity: 10);
 }
Esempio n. 5
0
 public VSTelemetryLogger(IVsTelemetryService service)
 {
     _service = service;
     _session = service.GetDefaultSession();
 }