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;
            }
        }