# Interface IWorkflowTenantSnapshot OptimaJet.Workflow.Api.IWorkflowTenantSnapshot Immutable point-in-time workflow tenant snapshot. Namespace: [OptimaJet.Workflow.Api](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/) ```csharp public interface IWorkflowTenantSnapshot : IDisposable, IAsyncDisposable ``` ## Type Hierarchy - IWorkflowTenantSnapshot Current type - Base interfaces - [IAsyncDisposable](https://learn.microsoft.com/dotnet/api/system.iasyncdisposable) - [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable) ## Properties `IReadOnlyCollection Tenants { get; }` Gets all tenant instances in this snapshot. `IReadOnlyCollection TenantIds { get; }` Gets all tenant ids in this snapshot. `bool IsSingleTenant { get; }` Returns `true` when the snapshot is configured in single-tenant mode. ## Methods `IWorkflowTenant GetTenant(string id)` Gets a workflow tenant by any registered tenant id. ### Parameters | Name | Type | Description | | --- | --- | --- | | `id` | `String` | The tenant id. | ### Returns | Type | Description | | --- | --- | | `IWorkflowTenant` | The workflow tenant. | [Previous IWorkflowTenantRegistryLifecycle](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/IWorkflowTenantRegistryLifecycle/) [Next WorkflowApiConstants](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/WorkflowApiConstants/)