Skip to content

class IdentityServerMiddleware

cangjie
public class IdentityServerMiddleware <: IMiddleware

功能:提供 Identity Server 请求处理中间件。

父类型:

成员概览

成员功能
init(IEndpointRouter)创建 Identity Server 中间件。
func invoke(HttpContext, RequestDelegate)处理当前请求并分发到 Identity Server 端点。

init(IEndpointRouter)

cangjie
public init(router: IEndpointRouter)

功能:创建 Identity Server 中间件。

参数:

func invoke(HttpContext, RequestDelegate)

cangjie
public func invoke(context: HttpContext, next: RequestDelegate): Unit

功能:处理当前请求并分发到 Identity Server 端点。

参数:

  • context: HttpContext - 当前 HTTP 上下文。
  • next: RequestDelegate - 下一个请求委托。

返回值:

  • Unit