interface DataProtectionServiceCollectionExtensions
cangjie
public interface DataProtectionServiceCollectionExtensions功能:定义数据保护服务注册扩展接口。
扩展到
成员概览
| 成员 | 功能 |
|---|---|
| func addDataProtection() | 使用默认选项注册数据保护服务。 |
| func addDataProtection((DataProtectionOptions) -> Unit) | 注册数据保护服务并配置数据保护选项。 |
func addDataProtection()
cangjie
func addDataProtection(): DataProtectionBuilder功能:使用默认选项注册数据保护服务。
返回值:
- DataProtectionBuilder - 返回数据保护构建器。
func addDataProtection((DataProtectionOptions) -> Unit)
cangjie
func addDataProtection(configureOptions: (DataProtectionOptions) -> Unit): DataProtectionBuilder功能:注册数据保护服务并配置数据保护选项。
参数:
- configureOptions: (DataProtectionOptions) -> Unit - 用于配置数据保护选项的委托。
返回值:
- DataProtectionBuilder - 返回数据保护构建器。