#### [Abblix\.Oidc\.Server](https://www.abblix.com/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Features\.MultiTenancy](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy 'Abblix\.Oidc\.Server\.Features\.MultiTenancy')

## ITenantOpening Interface

Readies what a tenant needs before the server first serves it, as the first key it signs with\.

```csharp
public interface ITenantOpening
```

Derived  
↳ [TenantKeyRingOpening](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantKeyRingOpening 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantKeyRingOpening')

### Remarks
The catalog hands over the tenants of one reading it has not served before, after the checks pass them, and
serves each once it is readied, so its first request finds what was readied\. A tenant not readied is left out
of that reading and logged, and handed over again at the next one; a tenant the settings declare that is not
readied on the reading the server starts with refuses the start\. The openings of one reading share one refresh
period, and the token is canceled when it runs out, except on that reading for the tenants the settings declare,
since the start waits for all of them\.
### Methods

## ITenantOpening\.OpenAsync\(IReadOnlyCollection\<TenantDefinition\>, CancellationToken\) Method {#Abblix.Oidc.Server.Features.MultiTenancy.ITenantOpening.OpenAsync(System.Collections.Generic.IReadOnlyCollection_Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition_,System.Threading.CancellationToken)}

Readies [tenants](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.ITenantOpening#Abblix.Oidc.Server.Features.MultiTenancy.ITenantOpening.OpenAsync(System.Collections.Generic.IReadOnlyCollection_Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition_,System.Threading.CancellationToken).tenants 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.ITenantOpening\.OpenAsync\(System\.Collections\.Generic\.IReadOnlyCollection\<Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition\>, System\.Threading\.CancellationToken\)\.tenants') to be served, each one on its own, so one that fails leaves the others
ready\.

```csharp
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,System.Exception>> OpenAsync(System.Collections.Generic.IReadOnlyCollection<Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition> tenants, System.Threading.CancellationToken cancellationToken);
```
#### Parameters

###### `tenants` [System\.Collections\.Generic\.IReadOnlyCollection&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlycollection-1 'System\.Collections\.Generic\.IReadOnlyCollection\`1')[TenantDefinition](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlycollection-1 'System\.Collections\.Generic\.IReadOnlyCollection\`1') {#Abblix.Oidc.Server.Features.MultiTenancy.ITenantOpening.OpenAsync(System.Collections.Generic.IReadOnlyCollection_Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition_,System.Threading.CancellationToken).tenants}

The tenants about to be served for the first time\.

###### `cancellationToken` [System\.Threading\.CancellationToken](https://learn.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken 'System\.Threading\.CancellationToken') {#Abblix.Oidc.Server.Features.MultiTenancy.ITenantOpening.OpenAsync(System.Collections.Generic.IReadOnlyCollection_Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition_,System.Threading.CancellationToken).cancellationToken}

Cancels the opening\.

#### Returns
[System\.Threading\.Tasks\.Task&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')[System\.Collections\.Generic\.IReadOnlyDictionary&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlydictionary-2 'System\.Collections\.Generic\.IReadOnlyDictionary\`2')[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[,](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlydictionary-2 'System\.Collections\.Generic\.IReadOnlyDictionary\`2')[System\.Exception](https://learn.microsoft.com/en-us/dotnet/api/system.exception 'System\.Exception')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlydictionary-2 'System\.Collections\.Generic\.IReadOnlyDictionary\`2')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')  
Why each tenant that could not be readied was not, by its id; the others are ready\.
