ProcessContext

ProcessContext

ProcessContext

The ProcessContext can be injected into your providers in order to know whether that provider is being executed in the context of the main Vendure server or the worker.

Signature

class ProcessContext {
  protected protected _isServer: boolean;
  isServer: boolean
  isWorker: boolean
}

Members

_isServer

protected property
type:
boolean

isServer

property
type:
boolean

isWorker

property
type:
boolean