您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

用于 .NET 的 Azure 服务总线中继库Azure Service Bus Relay libraries for .NET

概述Overview

Azure 中继服务通过允许安全地向公有云公开位于企业网络内的服务来创建混合应用程序,无需打开防火墙连接,也无需对企业网络基础结构进行彻底更改。The Azure Relay service creates hybrid applications by enabling you to securely expose services that reside within a corporate enterprise network to the public cloud, without having to open a firewall connection, or require intrusive changes to a corporate network infrastructure. 中继支持各种不同的传输协议和 Web 服务标准。Relay supports a variety of different transport protocols and web services standards.

详细了解 Azure 中继Learn more about Azure Relay.

客户端库Client library

直接从 Visual Studio 包管理器控制台或使用 .NET Core CLI 安装 NuGet 包Install the NuGet package directly from the Visual Studio Package Manager console or with the .NET Core CLI.

Visual Studio 包管理器Visual Studio Package Manager

Install-Package Microsoft.Azure.Relay
dotnet add package Microsoft.Azure.Relay

示例Samples

详细了解可在应用中使用的示例 .NET 代码Explore more sample .NET code you can use in your apps.