RaumfeldNET.ZoneManager.retrieveZonesResponseSink C# (CSharp) Метод

retrieveZonesResponseSink() защищенный Метод

protected retrieveZonesResponseSink ( HttpWebResponse _response ) : void
_response System.Net.HttpWebResponse
Результат void
        protected void retrieveZonesResponseSink(HttpWebResponse _response)
        {
            Stream stream = _response.GetResponseStream();
            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.Load(stream);
            this.writeLog(LogType.Info, "Zonen Request XML erhalten. Parse...");
            this.handleZoneXml(xmlDoc);
            this.checkAllRenderersLinked();

            // the retrieveZones WebRequest is a "long poll" web request, so we may send the request with the
            // given updateId in the header and then we wil be evented all the time the zone management changes!
            String updateId = _response.Headers["updateId"];
            if(!String.IsNullOrEmpty(updateId))
                this.retrieveZones(updateId);
        }