c# - Technology for cross-platform embedable .net Rest API -


we have .net server application, developed windows. now, move linux platform (using mono + postgre instead of ms sql) , want implement restful api it, can use appdomain resources such caches, internal objects , on. , so, need framework built such api. it'll if can built web-interface using razor or something, it's not main in case.

so far i've tried nancyfx looks promising, i've encountered errors running on mono, example, when run test app on windows nancy self-hosting, works good. but, when executed mono (on windows also), lacks performance , gives me little strange responses.

for example, simple method below:

get["/isactive"] = param =>             {                 var json = response.asjson(true);                 return json;             }; 

i true in .net execution ,

p/1.1 200 ok content-type: application/json; charset=utf-8 server: mono-httpapi/1.0 date: mon, 13 jul 2015 18:05:24 gmt transfer-encoding: chunked keep-alive: timeout=15,max=100  4 true 0 

and on mono response slow. guess it's mono issues httphandler or something...

so, platform best building embedable rest service server .net application running on linux mono?

alguém teria algum material que viesse vir me dar suporte no desenvolvimento para android usando o mono ? sou novo nesta praia, e estou criando um app em c# usando mono no visual studio, e preciso que este aplicativo se comunique com uma base de dados mysql ou com um webservice que se comunique com uma base de dados mysql, pois não achei ainda como fazer isto.


Comments