32 references to SafeInvoke
Microsoft.TestPlatform.CommunicationUtilities (5)
SocketClient.cs (3)
96
Connected.
SafeInvoke
(this, new ConnectedEventArgs(connectAsyncTask.Exception), "SocketClient: Server Failed to Connect");
102
Connected.
SafeInvoke
(this, new ConnectedEventArgs(_channel), "SocketClient: ServerConnected");
129
Disconnected?.
SafeInvoke
(this, new DisconnectedEventArgs(), "SocketClient: ServerDisconnected");
SocketServer.cs (2)
104
Connected.
SafeInvoke
(this, new ConnectedEventArgs(_channel), "SocketServer: ClientConnected");
142
Disconnected?.
SafeInvoke
(this, new DisconnectedEventArgs { Error = error }, "SocketServer: ClientDisconnected");
Microsoft.TestPlatform.CrossPlatEngine (5)
EventHandlers\TestCaseEventsHandler.cs (5)
40
TestCaseStart.
SafeInvoke
(this, new TestCaseStartEventArgs(testCase), "TestCaseEventsHandler.RaiseTestCaseStart");
46
TestCaseEnd.
SafeInvoke
(this, new TestCaseEndEventArgs(testCase, outcome), "TestCaseEventsHandler.RaiseTestCaseEnd");
52
TestResult.
SafeInvoke
(this, new TestResultEventArgs(result), "TestCaseEventsHandler.RaiseTestCaseEnd");
58
SessionStart.
SafeInvoke
(this, new SessionStartEventArgs(properties), "TestCaseEventsHandler.RaiseSessionStart");
64
SessionEnd.
SafeInvoke
(this, new SessionEndEventArgs(), "TestCaseEventsHandler.RaiseSessionEnd");
Microsoft.TestPlatform.TestHostRuntimeProvider (4)
Hosting\DefaultTestHostManager.cs (2)
509
HostLaunched?.
SafeInvoke
(this, e, "HostProviderEvents.OnHostLaunched");
521
HostExited?.
SafeInvoke
(this, e, "HostProviderEvents.OnHostExited");
Hosting\DotnetTestHostManager.cs (2)
807
HostLaunched?.
SafeInvoke
(this, e, "HostProviderEvents.OnHostLaunched");
820
HostExited?.
SafeInvoke
(this, e, "HostProviderEvents.OnHostExited");
Microsoft.VisualStudio.TestPlatform.Client (10)
Discovery\DiscoveryRequest.cs (5)
92
OnDiscoveryStart.
SafeInvoke
(this, discoveryStartEvent, "DiscoveryRequest.DiscoveryStart");
252
OnDiscoveredTests.
SafeInvoke
(this, discoveredTestsEvent, "DiscoveryRequest.HandleDiscoveryComplete");
272
OnDiscoveryComplete.
SafeInvoke
(this, discoveryCompleteEventArgs, "DiscoveryRequest.HandleDiscoveryComplete");
324
OnDiscoveredTests.
SafeInvoke
(this, discoveredTestsEvent, "DiscoveryRequest.OnDiscoveredTests");
349
OnDiscoveryMessage.
SafeInvoke
(this, testRunMessageEvent, "DiscoveryRequest.OnTestMessageRecieved");
Execution\TestRunRequest.cs (5)
154
OnRunStart.
SafeInvoke
(this, testRunStartEvent, "TestRun.TestRunStart");
391
OnRunStatsChange.
SafeInvoke
(this, lastChunkArgs, "TestRun.RunStatsChanged");
425
OnRunCompletion.
SafeInvoke
(this, runCompletedEvent, "TestRun.TestRunComplete");
493
OnRunStatsChange.
SafeInvoke
(this, testRunChangedArgs, "TestRun.RunStatsChanged");
517
TestRunMessage.
SafeInvoke
(this, testRunMessageEvent, "TestRun.LogMessages");
Microsoft.VisualStudio.TestPlatform.Common (8)
DataCollection\DataCollectionAttachmentManager.cs (1)
310
sendFileCompletedCallback?.
SafeInvoke
(this, new AsyncCompletedEventArgs(t.Exception, false, fileTransferInfo.UserToken), "DataCollectionManager.AddNewFileTransfer");
DataCollection\TestPlatformDataCollectionEvents.cs (5)
128
TestHostLaunched.
SafeInvoke
(this, e, "DataCollectionEvents.TestHostLaunched");
139
SessionStart.
SafeInvoke
(this, e, "DataCollectionEvents.SessionStart");
150
SessionEnd.
SafeInvoke
(this, e, "DataCollectionEvents.SessionEnd");
161
TestCaseStart.
SafeInvoke
(this, e, "DataCollectionEvents.TestCaseStart");
172
TestCaseEnd.
SafeInvoke
(this, e, "DataCollectionEvents.TestCaseEnd");
Logging\InternalTestLoggerEvents.cs (1)
341
eventHandlers?.
SafeInvoke
(this, args, traceDisplayName);
Logging\TestSessionMessageLogger.cs (1)
82
TestRunMessage.
SafeInvoke
(this, args, "TestRunMessageLoggerProxy.SendMessage");