scope

@ApiStatus.Experimental
fun Client.scope(scopeKey: String): ScopedKotlinClient

Deprecated

Use client.scope(scopeKey), which returns a ScopedClient exposing the Kotlin extension methods. This extension is shadowed by the Client.scope member and only reachable via an aliased import.

PREVIEW: Returns a ScopedKotlinClient that routes all outgoing calls within the given scope.

This extension has the same signature as the Client.scope member on the Java Client interface (which returns the platform ScopedClient), so it is shadowed by the member and is only reachable via an aliased import. Prefer client.scope(scopeKey), which returns ScopedClient and now exposes the Kotlin service/virtualObject/workflow/toService/... extensions directly.

Parameters

scopeKey

the scope identifier