/// <summary> /// Allows unit tests to change the platform threading interface. /// </summary> internal void UpdateServices() { if (_platform != null) { _platform.Signaled -= _jobRunner.RunJobs; } _platform = AvaloniaLocator.Current.GetService <IPlatformThreadingInterface>(); _jobRunner.UpdateServices(); if (_platform != null) { _platform.Signaled += _jobRunner.RunJobs; } }
///// <summary> ///// Allows unit tests to change the platform threading interface. ///// </summary> internal void UpdateServices() { if (_platform != null) { _platform.Signaled -= _jobRunner.RunJobs; } _platform = AvaloniaGlobals.PlatformThreadingInterface; _jobRunner.UpdateServices(); if (_platform != null) { _platform.Signaled += _jobRunner.RunJobs; } }