简单的配置和状态网站 [英] Simple Configuration and status Website

查看:55
本文介绍了简单的配置和状态网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

寻找一种轻量级且简单的方法来在一个进程内自托管一个网站,以便来自另一台计算机的用户可以登录,更新配置保存和查看状态。我真的不想在这里重新发明轮子 - 到目前为止我发现的一切都是网络服务或者过于复杂。我希望你的浏览器看起来像路由器配置页面。



要求很简单:

1)应该在应用程序(我并不担心需要管理权限等)

2)必须提供用户名和登录页面来保护内容。

3)应该托管配置页面和状态页面。配置页应回写到程序设置。或序列化一个配置类,而不是真的困扰。

4)如果设置页面使用反射来生成有点像属性网格的视图,那将会很好。

5)也许像代码项目这样的图像的模板形式会很好



我知道我可以从asp网站方法开始并托管IIS服务等,我一直在寻找更重的东西。我看着似乎已经扼杀了它的卡西尼,南希 - 这看起来不错,但是超级简单视图的文件简单地为我杀了它,没有实际工作的例子。我所追求的几乎就像一个可嵌入的主机。



必须要有一些几乎可以去的东西 - 我必须只是在寻找错误的东西。我原以为这样的配置网页对于这么多应用程序都很有用。



我常用的应用程序是windows窗体中的图像处理,我使用过ASP.Net网站简单,但对于这个应用程序,有一个这样一个零碎和令人眼花缭乱的框架阵列,我真的不知道从哪里开始。

Looking for a lightweight and simple way to self-host a website within a process such that a user from another machine can log in, update configuration save and view statuses. I'm really trying not to re-invent the wheel here - everything I've found so far is either web service or is over complex. I want something that appears to your browser just like a router configuration page.

The requirement is simple:
1) should run in the application (I'm not bothered about administration rights being required etc)
2) must provide a username and login page to protect the content.
3) should host a configuration page and a status page. The configuration page should write back to the program settings. Or serialize a configuration class, not really bothered.
4) would be nice if the settings page used reflection to generate the view working a bit like a propertygrid
5) some form of templating with perhaps an image like the code project would be nice

I know I could start with an asp website approach and host IIS service etc, I was looking for something much lighter weight. I looked at Cassini which seems to have snuffed it, Nancy - this looked good but the documentation for the Super Simple View thingy simply killed it for me with no examples that actually work. What I'm after is almost like an embeddedable host.

There has to be something somewhere that is almost good to go - I must just be searching for the wrong thing. I would have thought such a configuration web page would be useful for so many applications.

My usual application is image processing in windows forms, I have worked with ASP.Net websites briefly, but for this application, there is a such a fragmented and bewildering array of frameworks that I really don't know where to start.

推荐答案

这是任何帮助?

C#中的简单HTTP服务器 [ ^ ] - 未使用它本身,但它可以做你想要的。
Is this any help?
Simple HTTP Server in C#[^] - not used it myself, but it could do what you want.


这篇关于简单的配置和状态网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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