/
ILookupNormalizer.cs
26 lines (23 loc) · 1.02 KB
/
ILookupNormalizer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.AspNetCore.Identity
{
/// <summary>
/// Provides an abstraction for normalizing keys (emails/names) for lookup purposes.
/// </summary>
public interface ILookupNormalizer
{
/// <summary>
/// Returns a normalized representation of the specified <paramref name="name"/>.
/// </summary>
/// <param name="name">The key to normalize.</param>
/// <returns>A normalized representation of the specified <paramref name="name"/>.</returns>
string NormalizeName(string name);
/// <summary>
/// Returns a normalized representation of the specified <paramref name="email"/>.
/// </summary>
/// <param name="email">The email to normalize.</param>
/// <returns>A normalized representation of the specified <paramref name="email"/>.</returns>
string NormalizeEmail(string email);
}
}