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; }
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; }
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); }