start Service

open fun startService(host: BrownieHost, service: BrownieHostService)

Method used to start a service

Parameters

host

The host owner of the service

service

The service to start

Throws

when an exception occurred during the process


open fun startService(host: BrownieHost, service: BrownieHostService, hostRebooted: Boolean)

Method used to start a service

Parameters

host

The host owner of the service

service

The service to start

hostRebooted

Whether this method has been invoked after the host rebooted

Throws

when an exception occurred during the process