Esempio n. 1
0
        public async Task <TestContainersChangedEventArgs> AwaitForBuildComplete(CancellationToken cancellationToken)
        {
            bool testContainerUpdateCanceled = (uint)await Task.Run <int>(() => WaitForBuildComplete(cancellationToken)) > 0U;

            _buildResult = _buildResult == null ? new TestContainersChangedEventArgs(false, testContainerUpdateCanceled) : new TestContainersChangedEventArgs(_buildResult.Succeeded, _buildResult.Canceled | testContainerUpdateCanceled);
            return(_buildResult);
        }
Esempio n. 2
0
 private void OnBuildComplete(TestContainersChangedEventArgs eventArgs)
 {
     _buildResult = eventArgs;
     _buildCompleteEvent.Set();
     if (!_eventsEnabled || BuildCompleted == null || (!_fireOnNonUserInitiatedBuild && !_userStartedBuildAction))
     {
         _logger.LogVerbose("Build event filtered out");
         return;
     }
     _logger.LogVerbose("Firing BuildCompleted event...");
     BuildCompleted(this, eventArgs);
 }