/ src / modules / colorPicker / ColorPicker.ModuleServices / IColorPickerService.cs
IColorPickerService.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  using PowerToys.ModuleContracts;
 6  
 7  namespace ColorPicker.ModuleServices;
 8  
 9  public interface IColorPickerService : IModuleService
10  {
11      Task<OperationResult> OpenPickerAsync(CancellationToken cancellationToken = default);
12  
13      Task<OperationResult<IReadOnlyList<SavedColor>>> GetSavedColorsAsync(CancellationToken cancellationToken = default);
14  }