Skip to content

Commit

Permalink
docs: fix code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaxelr committed Oct 11, 2024
1 parent beeb1a2 commit 37fb0e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions Content/src/Extensions/HttpContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public static class HttpContextExtensions
/// <summary>
/// Encapsulate execution of handler with the corresponding validation logic
/// </summary>
/// <typeparam name="TOut"></typeparam>
/// <param name="ctx">The http context to process</param>
/// <param name="handler">A func handler that will be executed</param>
/// <returns name="Task">A Task object with the results</returns>
/// <typeparam name="TOut">The type to return.</typeparam>
/// <param name="ctx">The http context to process.</param>
/// <param name="handler">A func handler that will be executed.</param>
/// <returns name="Task">A Task object with the results.</returns>
public static async Task ExecHandler<TOut>(this HttpContext ctx, Func<TOut> handler)
{
try
Expand All @@ -40,7 +40,7 @@ public static async Task ExecHandler<TOut>(this HttpContext ctx, Func<TOut> hand
/// <summary>
/// Encapsulate execution of handler with the validation logic and storage on cache using the key provided
/// </summary>
/// <typeparam name="TOut"></typeparam>
/// <typeparam name="TOut">The type to return.</typeparam>
/// <param name="ctx">The http context to process</param>
/// <param name="cacheTimespan">Time alive for the store to keep</param>
/// <param name="handler">A func handler that will be executed</param>
Expand Down Expand Up @@ -70,8 +70,8 @@ public static async Task ExecHandler<TOut>(this HttpContext ctx, int cacheTimesp
/// <summary>
/// Encapsulate execution of handler with the validation logic while binding and validating the http request
/// </summary>
/// <typeparam name="TIn"></typeparam>
/// <typeparam name="TOut"></typeparam>
/// <typeparam name="TIn">The type to validate.</typeparam>
/// <typeparam name="TOut">The type to return.</typeparam>
/// <param name="ctx">The http context to process</param>
/// <param name="handler">A func handler that will be validated and executed</param>
/// <returns name="Task">A Task object with the results</returns>
Expand Down Expand Up @@ -111,8 +111,8 @@ public static async Task ExecHandler<TIn, TOut>(this HttpContext ctx, TIn @in, F
/// Encapsulate execution of handler with the validation logic while binding,
/// validating the http request and storing on cache using the key provided
/// </summary>
/// <typeparam name="TIn"></typeparam>
/// <typeparam name="TOut"></typeparam>
/// <typeparam name="TIn">The type to validate.</typeparam>
/// <typeparam name="TOut">The type to return.</typeparam>
/// <param name="ctx">The http context to process</param>
/// <param name="cacheTimespan">Time alive for the store to keep</param>
/// <param name="handler">A func handler that will be validated and executed</param>
Expand Down
4 changes: 2 additions & 2 deletions Content/src/Extensions/TypeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ public static class TypeExtensions
/// <summary>
/// Check if the type inherits from IEnumerable
/// </summary>
/// <param name="type"></param>
/// <param name="type">The type to check.</param>
/// <returns>A boolean that indicates if the type inherits from IEnumerable</returns>
internal static bool IsIEnumerable(this Type type) => type.GetInterface(nameof(IEnumerable)) != null;

/// <summary>
/// Returns the element from the underlying Collection
/// </summary>
/// <param name="type"></param>
/// <param name="type">The type to inspect.</param>
/// <returns>Gets the type from the element of the </returns>
internal static Type GetAnyElementType(this Type type)
{
Expand Down

0 comments on commit 37fb0e4

Please sign in to comment.