ProxyExtension.RunProxy 方法

定义

重载

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

用于设置端口、主机和方案的选项

返回

适用于