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

## SharedSignalsMultiTenancyExtensions Class

Makes a Shared Signals transmitter per tenant\.

```csharp
public static class SharedSignalsMultiTenancyExtensions
```

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

## SharedSignalsMultiTenancyExtensions\.AddConfiguredStreams\(this IOidcServerBuilder, string, IReadOnlyList\<ConfiguredStream\>\) Method {#Abblix.Oidc.Server.SharedSignals.SharedSignalsMultiTenancyExtensions.AddConfiguredStreams(thisAbblix.Oidc.Server.IOidcServerBuilder,string,System.Collections.Generic.IReadOnlyList_Abblix.SharedSignals.Transmitter.ConfiguredStream_)}

Declares the streams of the tenant [tenantId](https://www.abblix.com/docs/api/abblix-oidc-server-sharedsignals/Abblix.Oidc.Server.SharedSignals.SharedSignalsMultiTenancyExtensions#Abblix.Oidc.Server.SharedSignals.SharedSignalsMultiTenancyExtensions.AddConfiguredStreams(thisAbblix.Oidc.Server.IOidcServerBuilder,string,System.Collections.Generic.IReadOnlyList_Abblix.SharedSignals.Transmitter.ConfiguredStream_).tenantId 'Abblix\.Oidc\.Server\.SharedSignals\.SharedSignalsMultiTenancyExtensions\.AddConfiguredStreams\(this Abblix\.Oidc\.Server\.IOidcServerBuilder, string, System\.Collections\.Generic\.IReadOnlyList\<Abblix\.SharedSignals\.Transmitter\.ConfiguredStream\>\)\.tenantId') as configuration: they are that tenant's stream
set, reconciled into its own part of the stream store the first time it is asked for its streams, so its
receivers find them and no other tenant's does\.

```csharp
public static Abblix.Oidc.Server.IOidcServerBuilder AddConfiguredStreams(this Abblix.Oidc.Server.IOidcServerBuilder builder, string tenantId, System.Collections.Generic.IReadOnlyList<Abblix.SharedSignals.Transmitter.ConfiguredStream> streams);
```
#### Parameters

###### `builder` [IOidcServerBuilder](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.IOidcServerBuilder 'Abblix\.Oidc\.Server\.IOidcServerBuilder') {#Abblix.Oidc.Server.SharedSignals.SharedSignalsMultiTenancyExtensions.AddConfiguredStreams(thisAbblix.Oidc.Server.IOidcServerBuilder,string,System.Collections.Generic.IReadOnlyList_Abblix.SharedSignals.Transmitter.ConfiguredStream_).builder}

What registering the server returned, after [AddSharedSignals\(this IOidcServerBuilder\)](https://www.abblix.com/docs/api/abblix-oidc-server-sharedsignals/Abblix.Oidc.Server.SharedSignals.SharedSignalsMultiTenancyExtensions#Abblix.Oidc.Server.SharedSignals.SharedSignalsMultiTenancyExtensions.AddSharedSignals(thisAbblix.Oidc.Server.IOidcServerBuilder) 'Abblix\.Oidc\.Server\.SharedSignals\.SharedSignalsMultiTenancyExtensions\.AddSharedSignals\(this Abblix\.Oidc\.Server\.IOidcServerBuilder\)')\.

###### `tenantId` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.SharedSignals.SharedSignalsMultiTenancyExtensions.AddConfiguredStreams(thisAbblix.Oidc.Server.IOidcServerBuilder,string,System.Collections.Generic.IReadOnlyList_Abblix.SharedSignals.Transmitter.ConfiguredStream_).tenantId}

The id of the tenant whose streams these are\.

###### `streams` [System\.Collections\.Generic\.IReadOnlyList&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlylist-1 'System\.Collections\.Generic\.IReadOnlyList\`1')[ConfiguredStream](https://www.abblix.com/docs/api/abblix-sharedsignals/Abblix.SharedSignals.Transmitter.ConfiguredStream 'Abblix\.SharedSignals\.Transmitter\.ConfiguredStream')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ireadonlylist-1 'System\.Collections\.Generic\.IReadOnlyList\`1') {#Abblix.Oidc.Server.SharedSignals.SharedSignalsMultiTenancyExtensions.AddConfiguredStreams(thisAbblix.Oidc.Server.IOidcServerBuilder,string,System.Collections.Generic.IReadOnlyList_Abblix.SharedSignals.Transmitter.ConfiguredStream_).streams}

The declared streams\.

#### Returns
[IOidcServerBuilder](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.IOidcServerBuilder 'Abblix\.Oidc\.Server\.IOidcServerBuilder')  
The same builder\.

### Remarks
The declared streams are kept as a store of declared streams keeps them: the configuration owns what each stream
is, the receiver what it has done through the management API since, and a stream of the tenant the
configuration no longer declares is deleted\. A tenant declares its streams in one call\.

The server does not start when a tenant it serves at that moment declares a stream no request could be served
from, or when its tenants are only those of its settings and none of them has the id.

## SharedSignalsMultiTenancyExtensions\.AddSharedSignals\(this IOidcServerBuilder\) Method {#Abblix.Oidc.Server.SharedSignals.SharedSignalsMultiTenancyExtensions.AddSharedSignals(thisAbblix.Oidc.Server.IOidcServerBuilder)}

Builds a transmitter for each tenant, bound to that tenant's issuer, part of the stores and signing keys,
answers each request with the transmitter of the tenant serving it, runs push delivery for each tenant served,
and deletes a released tenant's streams\.

```csharp
public static Abblix.Oidc.Server.IOidcServerBuilder AddSharedSignals(this Abblix.Oidc.Server.IOidcServerBuilder builder);
```
#### Parameters

###### `builder` [IOidcServerBuilder](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.IOidcServerBuilder 'Abblix\.Oidc\.Server\.IOidcServerBuilder') {#Abblix.Oidc.Server.SharedSignals.SharedSignalsMultiTenancyExtensions.AddSharedSignals(thisAbblix.Oidc.Server.IOidcServerBuilder).builder}

What registering the server returned\.

#### Returns
[IOidcServerBuilder](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.IOidcServerBuilder 'Abblix\.Oidc\.Server\.IOidcServerBuilder')  
The same builder\.

### Remarks

Wraps what the transmitter registration and the choice of stores registered, so those come before this call;
startup refuses a server in which a later registration replaced a part this kept apart. Call it once.

The stores, the outbox and the delivery lease the host chose hold every tenant's data, and each tenant's
transmitter keeps its part of them apart by the tenant's space: a stream identifier alone does not, since a
stream a tenant declares carries the identifier its operator chose, and two tenants may choose the same one.
