Пример #1
0
            private void OnStop(Dictionary <string, string> query)
            {
                HttpStatusCode status;
                var            parameters = new Dictionary <string, string> {
                };
                string res;
                var    channel = FindChannelFromQuery(query);

                if (channel != null)
                {
                    PeerCast.CloseChannel(channel);
                    status = HttpStatusCode.OK;
                    res    = "OK";
                }
                else
                {
                    status = HttpStatusCode.NotFound;
                    res    = "Channel NotFound";
                }
                Send(HTTPUtils.CreateResponse(status, parameters, res));
            }