Inheritance: IDisposable
示例#1
0
文件: Client.cs 项目: mono/daap-sharp
        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);
        }
示例#2
0
文件: Client.cs 项目: mono/daap-sharp
        public void Dispose()
        {
            updateRunning = false;

            if (fetcher != null) {
                fetcher.Dispose ();
                fetcher = null;
            }
        }