gleono commented on code in PR #92:
URL: 
https://github.com/apache/openwhisk-runtime-dotnet/pull/92#discussion_r1796210962


##########
core/net6.0/proxy/Apache.OpenWhisk.Runtime.Common/Init.cs:
##########
@@ -21,31 +21,30 @@
 using System.Reflection;
 using System.Threading;
 using System.Threading.Tasks;
-using System.Collections.Generic;
 using Microsoft.AspNetCore.Http;
 using Newtonsoft.Json.Linq;
 
 namespace Apache.OpenWhisk.Runtime.Common
 {
     public class Init
     {
-        private readonly SemaphoreSlim _initSemaphoreSlim = new 
SemaphoreSlim(1, 1);
+        private readonly SemaphoreSlim _initSemaphoreSlim = new(initialCount: 
1, maxCount: 1);

Review Comment:
   Shorter syntax and clearer parameters.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to