mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
20 lines
554 B
C#
20 lines
554 B
C#
|
|
// Copyright (c) Microsoft Corporation
|
|||
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|||
|
|
// See the LICENSE file in the project root for more information.
|
|||
|
|
|
|||
|
|
namespace Microsoft.CmdPal.UI.ViewModels;
|
|||
|
|
|
|||
|
|
public class GlobalLogPageContext : IPageContext
|
|||
|
|
{
|
|||
|
|
public TaskScheduler Scheduler { get; private init; }
|
|||
|
|
|
|||
|
|
public void ShowException(Exception ex, string? extensionHint)
|
|||
|
|
{ /*do nothing*/
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public GlobalLogPageContext()
|
|||
|
|
{
|
|||
|
|
Scheduler = TaskScheduler.FromCurrentSynchronizationContext();
|
|||
|
|
}
|
|||
|
|
}
|