-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
44 additions
and
44 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,4 +1,5 @@ | ||
using System.Globalization; | ||
using GenHTTP.Modules.I18n.Provider; | ||
|
||
namespace GenHTTP.Modules.I18n; | ||
|
||
|
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
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
14 changes: 7 additions & 7 deletions
14
Modules/GenHTTP.Modules.I18n/Types.cs → ...es/GenHTTP.Modules.I18n/Provider/Types.cs
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,26 +1,26 @@ | ||
using GenHTTP.Api.Protocol; | ||
using System.Globalization; | ||
|
||
namespace GenHTTP.Modules.I18n; | ||
namespace GenHTTP.Modules.I18n.Provider; | ||
|
||
/// <summary> | ||
/// Delegate to select the cultures for a given request. | ||
/// Delegate to extract the cultures for a given request. | ||
/// </summary> | ||
/// <param name="request">The request to select cultures for.</param> | ||
/// <returns>An enumerable of CultureInfo objects representing the selected cultures.</returns> | ||
public delegate IEnumerable<CultureInfo> CultureSelector_Delegate(IRequest request); | ||
/// <param name="request">The request to extract cultures for.</param> | ||
/// <returns>An enumerable of CultureInfo objects representing the extracted cultures.</returns> | ||
public delegate IEnumerable<CultureInfo> CultureSelectorDelegate(IRequest request); | ||
|
||
/// <summary> | ||
/// Delegate to set the culture for a given request. | ||
/// </summary> | ||
/// <param name="request">The request to set the culture for.</param> | ||
/// <param name="cultureInfo">The CultureInfo object representing the culture to be set.</param> | ||
public delegate void CultureSetter_Delegate(IRequest request, CultureInfo cultureInfo); | ||
public delegate void CultureSetterDelegate(IRequest request, CultureInfo cultureInfo); | ||
|
||
/// <summary> | ||
/// Delegate to filter the cultures for a given request. | ||
/// </summary> | ||
/// <param name="request">The request to filter cultures for.</param> | ||
/// <param name="cultureInfo">The CultureInfo object representing the culture to be filtered.</param> | ||
/// <returns>True if the culture is valid for the request, otherwise false.</returns> | ||
public delegate bool CultureFilter_Delegate(IRequest request, CultureInfo cultureInfo); | ||
public delegate bool CultureFilterDelegate(IRequest request, CultureInfo cultureInfo); |