繁体   English   中英

C# 控制台应用程序(游戏后端):最简单(但也可扩展)的托管方式是什么?

[英]C# Console Application (game back-end): What's the easiest (but also scalable) way to host it?

我构建了一个 c# 控制台应用程序,这是我的游戏后端。

I am considering using Azure, but not sure which Azure product is right for me since Azure App Service doesn't -by default- allows me to host a c# console application.

如果有人能指出我正确的方向,我将不胜感激,因为我对 Azure 提供的大量类似产品感到困惑。

如果您想将它托管在云上,那么它是一个控制台应用程序是没有意义的,因为您不会登录该服务器并观看控制台 output,除非您获得 Azure 虚拟机并将其托管并通过RDP 连接,但你为什么要这样做......!

In general you can expose back end logic via WCF services hosted on IIS or also self hosted on Windows Services, and instead of console output you can then redirect taht output to either log files or database.

不应该有太多的重写,如果你的应用程序做得好,努力仅限于从控制台应用程序转换到 windows 服务或 IIS WCF 后端。

还可以在这里查看有关 Azure 服务/后端产品的一些想法:什么相当于 azure 上的 windows 服务?

暂无
暂无

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

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