如何在 Azure Web 应用程序上部署 Signal R 自托管服务器

How to deploy a signal R self host server on azure web app

我是 azure 的新手,我在 Azure 网络应用程序上有一个网络应用程序 运行,我有一个 signal-R 自托管作为控制台应用程序。我想将 signal r self host conbsole 应用程序部署到 azure。我需要采取哪些步骤?

@esther方,

请参考下面的教程,需要注意的一件事是,您需要为您的网站手动启用网络套接字。

http://www.asp.net/signalr/overview/deployment/using-signalr-with-azure-web-sites

引用:

Deploying a SignalR Web App to Azure App Service

SignalR doesn't add any particular complications to deploying an application to Azure versus deploying to an on-premises server. An application that uses SignalR can be hosted in Azure without any changes in configuration or other settings (though for WebSockets support, see Enabling WebSockets on Azure App Service below.) For this tutorial, you'll deploy the application created in the Getting Started Tutorial to Azure.

您可以将您的控制台应用程序作为 Web 或辅助角色托管在 Azure 上,甚至可以托管在您管理的虚拟机上。 Here 是一个博客 post 比较 Azure Web 和辅助角色。

您可以在以下答案中找到设置它必须采取的步骤:

Hosting console application on Azure or Amazon, is it possible?