Apache with c# classes

戏子无情 提交于 2019-12-10 13:49:06

问题


Is there any way to have apache "pass" the request it takes to a c# "application" to handle, allowing it to return specific content. I want to handle an intense amount of asynchronous calls to apache via javascript and have these calls routed through c# (much the way asp.net does). Has anyone successfully done this before? Any idea where to start looking?

Update:
Some more information. I want to be able to handle thousands of concurrent asynchronous requests as fast as can possibly occur writing the interpreting agent in some kind of threaded c# application. I could be wrong, but I dont think that iis with asp.net is tailored for this sort of thing (a proof of concept would be great).

I feel that going with something like apache would be better suited. If that means going from something else to c# first is fine I guess, but I would like to be more direct.


回答1:


Apache actually supports running C# libraries using mod mono. Also, you could use CURL to send a web request to C# running on IIS. Another way would be to open a server socket directly in C#, and have apache (via php, python, or some other scripting language) connect to you C# application to handle the request. I think you need to be more specific about what exactly you are trying to accomplish.




回答2:


with apache2, you could run mod_aspdotnet

or if it suits you, run some urls in proxy mode (pass them to another asp.net server), using mod_proxy

or Kibbee's excellent solution



来源:https://stackoverflow.com/questions/2114434/apache-with-c-sharp-classes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!