1 write to _dataCollectionEnvironmentContext
Microsoft.VisualStudio.TestPlatform.Common (1)
DataCollection\DataCollectionManager.cs (1)
172
_dataCollectionEnvironmentContext
= DataCollectionEnvironmentContext.CreateForLocalEnvironment(dataCollectionContext);
18 references to _dataCollectionEnvironmentContext
Microsoft.VisualStudio.TestPlatform.Common (18)
DataCollection\DataCollectionManager.cs (18)
241
TPDebug.Assert(
_dataCollectionEnvironmentContext
is not null, "_dataCollectionEnvironmentContext is null");
242
var endEvent = new SessionEndEventArgs(
_dataCollectionEnvironmentContext
.SessionDataCollectionContext);
289
TPDebug.Assert(
_dataCollectionEnvironmentContext
is not null, "_dataCollectionEnvironmentContext is null");
290
var testHostLaunchedEventArgs = new TestHostLaunchedEventArgs(
_dataCollectionEnvironmentContext
.SessionDataCollectionContext, processId);
304
if (
_dataCollectionEnvironmentContext
is null)
309
sessionStartEventArgs.Context = new DataCollectionContext(
_dataCollectionEnvironmentContext
.SessionDataCollectionContext.SessionId);
323
if (
_dataCollectionEnvironmentContext
is null)
333
var context = new DataCollectionContext(
_dataCollectionEnvironmentContext
.SessionDataCollectionContext.SessionId, testCaseStartEventArgs.TestElement);
347
if (
_dataCollectionEnvironmentContext
is null)
357
var context = new DataCollectionContext(
_dataCollectionEnvironmentContext
.SessionDataCollectionContext.SessionId, testCaseEndEventArgs.TestElement);
539
TPDebug.Assert(
_dataCollectionEnvironmentContext
is not null, "_dataCollectionEnvironmentContext is null");
546
_dataCollectionEnvironmentContext
,
576
TPDebug.Assert(
_dataCollectionEnvironmentContext
is not null, "_dataCollectionEnvironmentContext is null");
578
dataCollectorInfo.Logger.LogError(
_dataCollectionEnvironmentContext
.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.DataCollectorInitializationError, dataCollectorConfig.FriendlyName, ex));
673
TPDebug.Assert(
_dataCollectionEnvironmentContext
is not null, "_dataCollectionEnvironmentContext is null");
675
_dataCollectionEnvironmentContext
.SessionDataCollectionContext,
734
TPDebug.Assert(
_dataCollectionEnvironmentContext
is not null, "_dataCollectionEnvironmentContext is null");
735
dataCollectionWrapper.Logger.LogError(
_dataCollectionEnvironmentContext
.SessionDataCollectionContext, message);