Ejemplo n.º 1
0
        private void OnEnable()
        {
            var description = new HttpWebRequestReceiverDescription();

            description.Prefixes.AddRange(m_prefixes);

            m_receiver = new HttpWebRequestReceiver(description, new WebRequestReceiveHandler());
            m_receiver.Initialize();
        }
        public IEnumerator InitializeAndUninitialize()
        {
            var description = new HttpWebRequestReceiverDescription
            {
                Prefixes =
                {
                    "http://*:8080/"
                }
            };

            var receiver = new HttpWebRequestReceiver(description, new WebRequestReceiveHandler());

            using (new InitializeScope(receiver))
            {
                yield return(new WaitForSeconds(1F));
            }
        }