class OpenApiOperationTransformerContext
cangjie
public class OpenApiOperationTransformerContext功能:提供操作转换器执行时的上下文信息。
成员概览
| 成员 | 功能 |
|---|---|
| init(IServiceProvider, String, ?ControllerActionDescriptor) | 创建操作转换器上下文实例。 |
| let documentName | 当前正在生成的文档名称。 |
| let services | 请求作用域的服务提供器。 |
| let description | 当前操作关联的控制器动作描述。 |
init(IServiceProvider, String, ?ControllerActionDescriptor)
cangjie
public init(services: IServiceProvider, documentName: String, description: ?ControllerActionDescriptor)功能:创建操作转换器上下文实例。
参数:
- services: IServiceProvider - 请求作用域的服务提供器。
- documentName:
String- 当前正在生成的文档名称。 - description: ?ControllerActionDescriptor - 当前操作关联的控制器动作描述。
let documentName
cangjie
public let documentName: String功能:当前正在生成的文档名称。
类型:String
let services
cangjie
public let services: IServiceProvider功能:请求作用域的服务提供器。
let description
cangjie
public let description: ?ControllerActionDescriptor功能:当前操作关联的控制器动作描述。