-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delegate filtering logic to implementation
Avoids having a special check for a specific type. Once we move to a truly generic form for resources, we'll have to check extension data values, possibly adding metadata to control which items participate in search.
- Loading branch information
1 parent
2b15a50
commit 4183ef1
Showing
4 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
namespace Aspire.Dashboard.Extensions; | ||
|
||
internal static class StringComparers | ||
{ | ||
public static StringComparer ResourceType => StringComparer.Ordinal; | ||
public static StringComparer UserTextSearch => StringComparer.CurrentCultureIgnoreCase; | ||
} | ||
|
||
internal static class StringComparisons | ||
{ | ||
public static StringComparison ResourceType => StringComparison.Ordinal; | ||
public static StringComparison UserTextSearch => StringComparison.CurrentCultureIgnoreCase; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters