getClient static method

String getClient(
  1. IContext? context
)

Extracts client name from execution context.

  • context execution context to trace execution through call chain. Returns a client name or null if it is not defined. See IContext

Implementation

static String getClient(IContext? context) {
  if (context == null) {
    return "";
  }
  var client = context.get("client");
  return client != null ? "" + client : "";
}