Skip to content

Commit 15887d3

Browse files
committed
style: update code comments
1 parent af7425c commit 15887d3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Extensions/CollectionExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static class CollectionExtensions
99
/// Since the mapping from the DI returns an instantiated class as based on the appsettings.json
1010
/// config file, we must check if the only element included is not empty, then we can define it as empty.
1111
/// </summary>
12-
/// <param name="collection"></param>
12+
/// <param name="collection">Determine if the collecton is empty.</param>
1313
internal static bool Empty(this IEnumerable<string> collection) =>
1414
collection.Count() <= 1 && string.IsNullOrEmpty(collection.FirstOrDefault());
1515
}

src/Extensions/HttpContextExtensions.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static class HttpContextExtensions
1313
/// <summary>
1414
/// Encapsulate execution of handler with the corresponding validation logic
1515
/// </summary>
16-
/// <typeparam name="TOut"></typeparam>
16+
/// <typeparam name="TOut">Type of the output of the handler</typeparam>
1717
/// <param name="ctx">The http context to process</param>
1818
/// <param name="handler">A func handler that will be validated and executed</param>
1919
/// <returns name="Task">A Task object with the results</returns>
@@ -40,7 +40,7 @@ public static async Task ExecHandler<TOut>(this HttpContext ctx, Func<TOut> hand
4040
/// <summary>
4141
/// Encapsulate execution of handler with the validation logic and storage on cache using the key provided
4242
/// </summary>
43-
/// <typeparam name="TOut"></typeparam>
43+
/// <typeparam name="TOut">Type of the output of the handler</typeparam>
4444
/// <param name="ctx">The http context to process</param>
4545
/// <param name="cacheTimespan">Time alive for the store to keep</param>
4646
/// <param name="handler">A func handler that will be executed</param>
@@ -70,8 +70,8 @@ public static async Task ExecHandler<TOut>(this HttpContext ctx, int cacheTimesp
7070
/// <summary>
7171
/// Encapsulate execution of handler with the validation logic while binding and validating the http request
7272
/// </summary>
73-
/// <typeparam name="TIn"></typeparam>
74-
/// <typeparam name="TOut"></typeparam>
73+
/// <typeparam name="TIn">Type of the input of the handler</typeparam>
74+
/// <typeparam name="TOut">Type of the output of the handler</typeparam>
7575
/// <param name="ctx">The http context to process</param>
7676
/// <param name="handler">A func handler that will be validated and executed</param>
7777
public static async Task ExecHandler<TIn, TOut>(this HttpContext ctx, TIn @in, Func<TIn, TOut> handler)
@@ -110,8 +110,8 @@ public static async Task ExecHandler<TIn, TOut>(this HttpContext ctx, TIn @in, F
110110
/// Encapsulate execution of handler with the validation logic while binding,
111111
/// validating the http request and storing on cache using the key provided
112112
/// </summary>
113-
/// <typeparam name="TIn"></typeparam>
114-
/// <typeparam name="TOut"></typeparam>
113+
/// <typeparam name="TIn">Type of the input of the handler</typeparam>
114+
/// <typeparam name="TOut">Type of the output of the handler</typeparam>
115115
/// <param name="ctx">The http context to process</param>
116116
/// <param name="cacheTimespan">Time alive for the store to keep</param>
117117
/// <param name="handler">A func handler that will be validated and executed</param>

0 commit comments

Comments
 (0)