@dolittle/sdk.tenancy
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
18 lines (14 loc) • 526 B
text/typescript
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import { Cancellation } from '@dolittle/sdk.resilience';
import { Tenant } from './Tenant';
/**
* Represents a system that knows about Tenants in the Runtime.
*/
export abstract class ITenants {
/**
* Gets all tenants.
* @param cancellation - The optional {@link Cancellation}.
*/
abstract getAll(cancellation?: Cancellation): Promise<Tenant[]>;
}