mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
[Hosts]Duplicate check improvements (#32805)
* moved duplicate check in a dedicate service and made it async * addressed feedback
This commit is contained in:
committed by
GitHub
parent
e2f1ad6d40
commit
c00f37c8d7
16
src/modules/Hosts/HostsUILib/Helpers/IDuplicateService.cs
Normal file
16
src/modules/Hosts/HostsUILib/Helpers/IDuplicateService.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
// 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.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using HostsUILib.Models;
|
||||
|
||||
namespace HostsUILib.Helpers
|
||||
{
|
||||
public interface IDuplicateService
|
||||
{
|
||||
void Initialize(IList<Entry> entries);
|
||||
|
||||
void CheckDuplicates(string address, string[] hosts);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user