acquireService

fun <T : Service> acquireService(serviceClass: Class<T>, preferredChannel: String? = null): T

create a service proxy for a remote service. A proxy will be created even if no channels are registered.

Return

the proxy

Parameters

T

the service type

serviceClass

the service class

preferredChannel

optional preferred channel name