isTrustedPublishRequest method

  1. @override
bool isTrustedPublishRequest(
  1. PublishRequest request
)
override

Determines if a given request comes from a trusted source.

If so, the request does not have to provide a pre-established ID, and instead will be assigned one.

Implementation

@override
bool isTrustedPublishRequest(PublishRequest request) {
  // Isolate clients are considered trusted, because they are
  // running in the same process as the central server.
  return true;
}