Renamed the Sweeping property to the KeepClean property

This commit is contained in:
sta
2013-07-30 16:00:17 +09:00
parent ef17cabdd3
commit df2726ce9d
8 changed files with 67 additions and 67 deletions

View File

@@ -144,6 +144,24 @@ namespace WebSocketSharp.Server {
#region Public Properties
/// <summary>
/// Gets or sets a value indicating whether the server cleans up the inactive WebSocket service
/// instances periodically.
/// </summary>
/// <value>
/// <c>true</c> if the server cleans up the inactive WebSocket service instances every 60 seconds;
/// otherwise, <c>false</c>. The default value is <c>true</c>.
/// </value>
public bool KeepClean {
get {
return _svcHosts.KeepClean;
}
set {
_svcHosts.KeepClean = value;
}
}
/// <summary>
/// Gets the collection of paths associated with the every WebSocket services that the server provides.
/// </summary>
@@ -161,24 +179,6 @@ namespace WebSocketSharp.Server {
}
}
/// <summary>
/// Gets or sets a value indicating whether the server cleans up the inactive WebSocket service
/// instances periodically.
/// </summary>
/// <value>
/// <c>true</c> if the server cleans up the inactive WebSocket service instances every 60 seconds;
/// otherwise, <c>false</c>. The default value is <c>true</c>.
/// </value>
public bool Sweeping {
get {
return _svcHosts.Sweeping;
}
set {
_svcHosts.Sweeping = value;
}
}
#endregion
#region Protected Methods
@@ -238,8 +238,8 @@ namespace WebSocketSharp.Server {
? new Uri(BaseUri, absPath)
: absPath.ToUri();
if (!Sweeping)
svcHost.Sweeping = false;
if (!KeepClean)
svcHost.KeepClean = false;
_svcHosts.Add(absPath, svcHost);
}