Comments clean up

This commit is contained in:
Shih-Ying Hsu 2014-03-05 11:22:32 -08:00
parent 177b0e87bf
commit 2960c5679d
1 changed files with 2 additions and 14 deletions

View File

@ -11,7 +11,7 @@ using System.Threading.Tasks;
namespace Microsoft.AspNet.Server.WebListener namespace Microsoft.AspNet.Server.WebListener
{ {
/// <summary> /// <summary>
/// Awaitable object that acts like a semaphore. The object would wait if more than maxConcurrent number of clients waits on it /// AwaitableThrottle is an awaitable object that acts like a semaphore. The object would wait if more than maxConcurrent number of clients waits on it.
/// </summary> /// </summary>
internal class AwaitableThrottle internal class AwaitableThrottle
{ {
@ -23,10 +23,7 @@ namespace Microsoft.AspNet.Server.WebListener
private int _count; private int _count;
/// <summary> // <param name="maxConcurrent">Maximum number of clients that can wait on this object at the same time.</param>
/// Constructor
/// </summary>
/// <param name="maxConcurrent">maximum number of clients that can wait on this object at the same time</param>
public AwaitableThrottle(int maxConcurrent) public AwaitableThrottle(int maxConcurrent)
{ {
_thislock = new object(); _thislock = new object();
@ -34,9 +31,6 @@ namespace Microsoft.AspNet.Server.WebListener
_maxConcurrent = maxConcurrent; _maxConcurrent = maxConcurrent;
} }
/// <summary>
/// Maximum amount of clients who can await on this throttle
/// </summary>
public int MaxConcurrent public int MaxConcurrent
{ {
get get
@ -50,9 +44,6 @@ namespace Microsoft.AspNet.Server.WebListener
} }
} }
/// <summary>
/// Called by framework
/// </summary>
public TaskAwaiter<bool> GetAwaiter() public TaskAwaiter<bool> GetAwaiter()
{ {
TaskCompletionSource<bool> awaiter; TaskCompletionSource<bool> awaiter;
@ -72,9 +63,6 @@ namespace Microsoft.AspNet.Server.WebListener
return awaiter.Task.GetAwaiter(); return awaiter.Task.GetAwaiter();
} }
/// <summary>
/// Release throttle
/// </summary>
public void Release() public void Release()
{ {
TaskCompletionSource<bool> completion = null; TaskCompletionSource<bool> completion = null;