Clock.Desktop/Dispatcher.cs (11 lines of code) (raw):

// ReSharper disable InconsistentNaming namespace Clock.Desktop { using System; using System.Windows; using ViewModels; // ReSharper disable once ClassNeverInstantiated.Global internal class Dispatcher: IDispatcher { public void Dispatch(Action action) => Application.Current?.Dispatcher?.Invoke(action); } }