BuildService() static private method

static private BuildService ( HttpRequest item ) : Service
item HttpRequest
return Service
Exemplo n.º 1
0
 void client_QueryReceived(HttpRequest item)
 {
     if (item.Method == "NOTIFY")
     {
         Service s = Service.BuildService(item);
         MergeServices(s);
     }
 }
Exemplo n.º 2
0
        void client_AnswerReceived(object sender, ClientEventArgs <HttpRequest, HttpResponse> e)
        {
            Service s = Service.BuildService(e.Response);

            if (s != null && ServiceFound != null)
            {
                ServiceFound(s);
            }
        }