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
TPDebug.Assert(
_dataCollectionEnvironmentContext
is not null, "_dataCollectionEnvironmentContext is null");
305
sessionStartEventArgs.Context = new DataCollectionContext(
_dataCollectionEnvironmentContext
.SessionDataCollectionContext.SessionId);
319
TPDebug.Assert(
_dataCollectionEnvironmentContext
is not null, "_dataCollectionEnvironmentContext is null");
321
var context = new DataCollectionContext(
_dataCollectionEnvironmentContext
.SessionDataCollectionContext.SessionId, testCaseStartEventArgs.TestElement);
335
TPDebug.Assert(
_dataCollectionEnvironmentContext
is not null, "_dataCollectionEnvironmentContext is null");
337
var context = new DataCollectionContext(
_dataCollectionEnvironmentContext
.SessionDataCollectionContext.SessionId, testCaseEndEventArgs.TestElement);
519
TPDebug.Assert(
_dataCollectionEnvironmentContext
is not null, "_dataCollectionEnvironmentContext is null");
526
_dataCollectionEnvironmentContext
,
556
TPDebug.Assert(
_dataCollectionEnvironmentContext
is not null, "_dataCollectionEnvironmentContext is null");
558
dataCollectorInfo.Logger.LogError(
_dataCollectionEnvironmentContext
.SessionDataCollectionContext, string.Format(CultureInfo.CurrentCulture, Resources.Resources.DataCollectorInitializationError, dataCollectorConfig.FriendlyName, ex));
653
TPDebug.Assert(
_dataCollectionEnvironmentContext
is not null, "_dataCollectionEnvironmentContext is null");
655
_dataCollectionEnvironmentContext
.SessionDataCollectionContext,
714
TPDebug.Assert(
_dataCollectionEnvironmentContext
is not null, "_dataCollectionEnvironmentContext is null");
715
dataCollectionWrapper.Logger.LogError(
_dataCollectionEnvironmentContext
.SessionDataCollectionContext, message);