Method AddHostingService
AddHostingService(Type, string)
Add a new hosting service instance of the given type. The serviceType must implement the
IHostingService interface, or an ArgumentException is thrown.
선언
public IHostingService AddHostingService(Type serviceType, string name)
파라미터
| 타입 | 이름 | 설명 |
|---|---|---|
| Type | serviceType | A Type object for the service. Must implement IHostingService |
| string | name | A descriptive name for the new service instance. |
반환
| 타입 | 설명 |
|---|---|
| IHostingService |