ProxyExtension.RunProxy 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RunProxy(IApplicationBuilder) |
按照选项中的指定将请求发送到远程服务器 |
RunProxy(IApplicationBuilder, ProxyOptions) |
按照选项中的指定将请求发送到远程服务器 |
RunProxy(IApplicationBuilder)
按照选项中的指定将请求发送到远程服务器
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ RunProxy(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder RunProxy (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member RunProxy : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function RunProxy (app As IApplicationBuilder) As IApplicationBuilder
参数
返回
适用于
RunProxy(IApplicationBuilder, ProxyOptions)
按照选项中的指定将请求发送到远程服务器
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ RunProxy(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::ProxyOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder RunProxy (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.ProxyOptions options);
static member RunProxy : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.ProxyOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function RunProxy (app As IApplicationBuilder, options As ProxyOptions) As IApplicationBuilder
参数
- options
- ProxyOptions
用于设置端口、主机和方案的选项