简体   繁体   English

将现有控制台应用程序移植到Windows Azure

[英]Porting existing console application to Windows Azure

I have some console applications that communicate using WCF over TCP. 我有一些控制台应用程序,可以通过WCF通过TCP进行通信。 Is it possible/easy to port a console application to Windows Azure, or must the application be hosted in IIS/asp .net? 是否可以/轻松地将控制台应用程序移植到Windows Azure,还是必须将应用程序托管在IIS / asp .net中?

Since you do not really log into a Windows Azure machine and see the screen as you could do with a local server in your network I guess you should only develop server side components or IIS Hosted services and web applications exactly as you said. 由于您实际上并没有登录Windows Azure计算机,而是像使用网络中的本地服务器那样看到屏幕,所以我猜您应该完全按照您所说的开发服务器端组件或IIS托管服务和Web应用程序。

you could get the Windows Azure SDK: Windows Azure SDK and explorer the available templates and alternatives locally in your machine. 您可以获取Windows Azure SDK: Windows Azure SDK并在计算机本地浏览器中可用的模板和替代方案。

A console application can be started from a role - web or worker - and communication to that app can be via the InputEndpoint (HTTP, HTTPS or TCP). 控制台应用程序可以从角色(网络或工作人员)启动,并且可以通过InputEndpoint(HTTP,HTTPS或TCP)与该应用程序进行通信。

I worked on a project that spawned a console app from a worker role, the role fed workloads read from storage queues direct to a WCF service hosted in the console application - using tcp. 我在一个项目中工作,该项目从工作者角色派生出控制台应用程序,该角色使用tcp将从存储队列中读取的工作负载直接馈送到控制台应用程序中托管的WCF服务。

I found that you can use startup tasks in the config file for Azure. 我发现您可以在Azure的配置文件中使用启动任务。 That works. 这样可行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM