CorsMiddleware.Invoke 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Invoke(HttpContext) | |
Invoke(HttpContext, ICorsPolicyProvider) |
Invoke(HttpContext)
- Source:
- CorsMiddleware.cs
- Source:
- CorsMiddleware.cs
System.Object.Invoke(Microsoft.AspNetCore.Http.HttpContext)
public:
System::Threading::Tasks::Task ^ Invoke(Microsoft::AspNetCore::Http::HttpContext ^ context);
public System.Threading.Tasks.Task Invoke (Microsoft.AspNetCore.Http.HttpContext context);
member this.Invoke : Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task
Public Function Invoke (context As HttpContext) As Task
参数
- context
- HttpContext
返回
适用于
Invoke(HttpContext, ICorsPolicyProvider)
- Source:
- CorsMiddleware.cs
System.Object.Invoke(Microsoft.AspNetCore.Http.HttpContext,Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider)
public:
System::Threading::Tasks::Task ^ Invoke(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Cors::Infrastructure::ICorsPolicyProvider ^ corsPolicyProvider);
public System.Threading.Tasks.Task Invoke (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider corsPolicyProvider);
member this.Invoke : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Cors.Infrastructure.ICorsPolicyProvider -> System.Threading.Tasks.Task
Public Function Invoke (context As HttpContext, corsPolicyProvider As ICorsPolicyProvider) As Task
参数
- context
- HttpContext
- corsPolicyProvider
- ICorsPolicyProvider