/ src / modules / cmdpal / Core / Microsoft.CmdPal.Core.ViewModels / GlobalLogPageContext.cs
GlobalLogPageContext.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  namespace Microsoft.CmdPal.Core.ViewModels;
 6  
 7  public class GlobalLogPageContext : IPageContext
 8  {
 9      public TaskScheduler Scheduler { get; private init; }
10  
11      public void ShowException(Exception ex, string? extensionHint)
12      { /*do nothing*/
13      }
14  
15      public GlobalLogPageContext()
16      {
17          Scheduler = TaskScheduler.FromCurrentSynchronizationContext();
18      }
19  }