예제 #1
0
 public string register_route(string uid, string uri_template, RequestHandler handler)
 {
     return(_httpServerService.RegisterRoute(uid, uri_template, request => handler(PythonConvert.ToPythonDictionary(request))));
 }
예제 #2
0
 public string register_route(string uid, string uri_template, Func <PythonDictionary, PythonDictionary> handler)
 {
     return(_httpServerService.RegisterRoute(uid, uri_template, request => handler(request)));
 }