public Client(IPAddress address, UInt16 port) { this.address = address; this.port = port; fetcher = new ContentFetcher (address, port); ContentNode node = ContentParser.Parse (ContentCodeBag.Default, fetcher.Fetch ("/server-info")); serverInfo = ServerInfo.FromNode (node); }
public void Dispose() { updateRunning = false; if (fetcher != null) { fetcher.Dispose (); fetcher = null; } }