Misc code review

This commit is contained in:
JustArchi
2016-08-19 05:25:08 +02:00
parent 2c767bfe85
commit d0344a7ab9
7 changed files with 14 additions and 16 deletions

View File

@@ -30,7 +30,7 @@ using Newtonsoft.Json;
using SteamKit2.Discovery;
namespace ArchiSteamFarm {
internal sealed class InMemoryServerListProvider : IServerListProvider {
internal sealed class InMemoryServerListProvider : IDisposable, IServerListProvider {
[JsonProperty(Required = Required.DisallowNull)]
private readonly ConcurrentHashSet<IPEndPoint> Servers = new ConcurrentHashSet<IPEndPoint>();
@@ -53,5 +53,7 @@ namespace ArchiSteamFarm {
ServerListUpdated(this, EventArgs.Empty);
return Task.Delay(0);
}
public void Dispose() => Servers.Dispose();
}
}