# Interface IWorkflowTenantFactory OptimaJet.Workflow.Api.IWorkflowTenantFactory Factory interface for creating [IWorkflowTenant](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/IWorkflowTenant/) instances. Namespace: [OptimaJet.Workflow.Api](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/) ```csharp public interface IWorkflowTenantFactory ``` ## Methods `IWorkflowTenant Create(WorkflowTenantCreationOptions options)` Creates a new [IWorkflowTenant](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/IWorkflowTenant/) instance based on the provided creation options. ### Parameters | Name | Type | Description | | --- | --- | --- | | `options` | `WorkflowTenantCreationOptions` | The options for creating the tenant. | ### Returns | Type | Description | | --- | --- | | `IWorkflowTenant` | A new instance of [IWorkflowTenant](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/IWorkflowTenant/). | `IWorkflowTenant Create(IEnumerable ids, WorkflowRuntime runtime, DataProviderCreationOptions dataProviderOptions, WorkflowTenantLifecycleOwnership lifecycleOwnership = WorkflowTenantLifecycleOwnership.Registry)` Creates a new [IWorkflowTenant](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/IWorkflowTenant/) instance with the specified IDs, workflow runtime, and data provider options. ### Parameters | Name | Type | Description | | --- | --- | --- | | `ids` | `IEnumerable` | The logical tenant IDs that map to this tenant instance. | | `runtime` | `WorkflowRuntime` | The workflow runtime instance for this tenant. | | `dataProviderOptions` | `DataProviderCreationOptions` | The options for creating the data provider. | | `lifecycleOwnership` | `WorkflowTenantLifecycleOwnership` | The lifecycle ownership of the tenant. | ### Returns | Type | Description | | --- | --- | | `IWorkflowTenant` | A new instance of [IWorkflowTenant](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/IWorkflowTenant/). | [Previous IWorkflowTenant](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/IWorkflowTenant/) [Next IWorkflowTenantLocator](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/IWorkflowTenantLocator/)