TenantAwareOperation

protected void TenantAwareOperation()

Creates an instance of an operation which uses the TenantId set in the execution context.

Throws

if there is no current TenantId set


protected void TenantAwareOperation(TenantId tenantId)

Creates an instance of an operation for the tenant specified by the passed ID.

If a default instance of TenantId is passed (because the application works in a single-tenant mode), singleTenant() value will be substituted.

Parameters

tenantId

the tenant ID or default value