#### [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')

## TenantRefusal Class

Why a check of a tenant list refuses some of its tenants\.

```csharp
public sealed record TenantRefusal : System.IEquatable<Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal>
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → TenantRefusal

Implements [System\.IEquatable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')[TenantRefusal](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantRefusal')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')
### Constructors

## TenantRefusal\(IReadOnlyCollection\<string\>, string\) Constructor {#Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal.TenantRefusal(System.Collections.Generic.IReadOnlyCollection_string_,string)}

Why a check of a tenant list refuses some of its tenants\.

```csharp
public TenantRefusal(System.Collections.Generic.IReadOnlyCollection<string> TenantIds, string Message);
```
#### Parameters

###### `TenantIds` [System\.Collections\.Generic\.IReadOnlyCollection&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlycollection-1 'System\.Collections\.Generic\.IReadOnlyCollection\`1')[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlycollection-1 'System\.Collections\.Generic\.IReadOnlyCollection\`1') {#Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal.TenantRefusal(System.Collections.Generic.IReadOnlyCollection_string_,string).TenantIds}

The tenants refused: one for a mistake of its own, every party to a conflict between
            several\.

###### `Message` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal.TenantRefusal(System.Collections.Generic.IReadOnlyCollection_string_,string).Message}

What is wrong, naming the tenants\.
### Properties

## TenantRefusal\.Message Property {#Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal.Message}

What is wrong, naming the tenants\.

```csharp
public string Message { get; init; }
```

#### Property Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')

## TenantRefusal\.PartyMessage Property {#Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal.PartyMessage}

What is wrong with a conflict between several tenants as told to one of them, naming none of the tenants,
since the party changing one tenant may not be entitled to learn which others exist; null for a refusal of
one tenant alone\. A host's own check may leave it null for a conflict too, and the party is then told only
that its tenant conflicts with another, which the host's log names\.

```csharp
public string? PartyMessage { get; init; }
```

#### Property Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')

## TenantRefusal\.TenantIds Property {#Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal.TenantIds}

The tenants refused: one for a mistake of its own, every party to a conflict between
            several\.

```csharp
public System.Collections.Generic.IReadOnlyCollection<string> TenantIds { get; init; }
```

#### Property Value
[System\.Collections\.Generic\.IReadOnlyCollection&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlycollection-1 'System\.Collections\.Generic\.IReadOnlyCollection\`1')[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlycollection-1 'System\.Collections\.Generic\.IReadOnlyCollection\`1')
### Methods

## TenantRefusal\.Of\(TenantDefinition, string\) Method {#Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal.Of(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,string)}

A refusal of [tenant](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal#Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal.Of(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,string).tenant 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantRefusal\.Of\(Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition, string\)\.tenant') alone\.

```csharp
public static Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal Of(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition tenant, string message);
```
#### Parameters

###### `tenant` [TenantDefinition](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition') {#Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal.Of(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,string).tenant}

###### `message` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.MultiTenancy.TenantRefusal.Of(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,string).message}

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