有没有一种方法来创建一个"自托管"在.net网站? [英] Is there a way to create a "Self-hosted" Web Site in .Net?

查看:130
本文介绍了有没有一种方法来创建一个"自托管"在.net网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要WCF自托管相似。

有没有一种方法来创建一个网站,是自我主办的控制台应用程序中或 DLL

Is there a way to create a website that is "self-hosted" within a console application or dll?

也许是错误的方式来问这个问题,但我想要做的就是使用本网站拆分结果网页页面,而无需创建 IIS 内的网站。

Probably the wrong way to ask this question, but what i'd like to do is use this website to split results as web pages without creating the website within IIS.

感谢。

推荐答案

一个非常基本的HTTP服务器通过的的HttpListener类在.NET Framework

A very basic HTTP server is implemented by the HttpListener Class in the .NET Framework.

如果你需要更强大的东西,看看的微软卡西尼,用C#编写在MS-PL许可一个简单的HTTP服务器。这基本上是一个演示如何承载ASP.NET运行时。

If you need something more powerful, have a look at Microsoft Cassini, a simple HTTP server written in C# licensed under Ms-PL. It's basically a demo how to host the ASP.NET runtime.

这篇关于有没有一种方法来创建一个"自托管"在.net网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆