开发者

Apache with c# classes

开发者 https://www.devze.com 2022-12-17 08:20 出处:网络
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 ha开发者_高级运维ndle an intense amount of asynchrono

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 ha开发者_高级运维ndle 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.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号