Skip to content

interface IHostedService

cangjie
public interface IHostedService

功能:定义托管服务的公共接口。

成员概览

成员功能
func start()启动当前托管服务。
func stop()停止当前托管服务。

func start()

cangjie
func start(): Unit

功能:启动当前托管服务。

返回值:

  • Unit

func stop()

cangjie
func stop(): Unit

功能:停止当前托管服务。

返回值:

  • Unit