interface HostedServiceExtensions
cangjie
public interface HostedServiceExtensions功能:提供托管服务注册扩展。
扩展到
成员概览
| 成员 | 功能 |
|---|---|
| func addHostedService() | 注册一个托管服务类型。 |
func addHostedService()
cangjie
func addHostedService<THostedService>(): ServiceCollection where THostedService <: IHostedService & Object功能:注册一个托管服务类型。
返回值:
- ServiceCollection - 返回当前服务集合,便于继续链式配置。