C#服务到ASP.Net站点 [英] C# Service to ASP.Net Site

查看:61
本文介绍了C#服务到ASP.Net站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,

我对C#和.net平台都是陌生的,所以我需要一个在即将到来的项目上没有什么方向.我有一个项目,要求在Windows 2008 R2服务器上运行Windows服务, 收集信息并通过电子邮件发送警报,我需要创建一个网站来显示该服务正在创建的警报的全部内容.至于服务监视部分和发送电子邮件,我已经对此进行了介绍.我的问题是 该服务与网站进行通信的最佳实践是什么,以便用户登录时,他\她可以看到有关我正在收集的警报或警告的更多信息?我调查了信息流,并拨打了电话,但由于我不熟悉ASP.net 想知道哪种方式是首选方式.安全不是主要问题,因为收集的信息主要是有关正在创建新文件和文件复制的警报.

I am new to both C# and the .net platform so I need a little direction on an upcoming project. I have a project that requires a windows service running on a 2008 r2 server that gathers information and sends alerts VIA email and I need to produce a website that shows full content of the alert that the service is creating. As for the service monitoring portion and sending emails i have that covered. The question i have is what is the best practice for the service to communicate to the website so that when the user logs on he\she can see more information about the alert or warning that i am gathering? I looked into streams, and soap calls but since i am not familiar with ASP.net i was wondering which way is the preferred way. The security is not a main concern since the information being gathered is mainly alerts about new files being created and file replication.

感谢高级

 

推荐答案

最好的方法是使用XML Web Services(SOAP).在Web服务器上创建一个将记录插入警报数据库的Web服务,并在同一台服务器上创建从数据库读取警报的ASP .NET.

The best way is to use XML Web Services (SOAP). Create on the web server a web service that inserts records into the alerts database and create on the same server your ASP .NET that reads the alerts from the database.

从Windows服务器(可能安装在需要监视的其他服务器上)中,调用Web服务方法以将警报插入数据库中.

From your windows server (that may be installed on your different servers that needs monitoring) call the web service method to insert the alert in the database.

 


这篇关于C#服务到ASP.Net站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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