Docs
Tenantry CoreAPI reference

ITenantRegistration interface

Namespace: Tenantry · Package: Tenantry.Core · API reference

A registration that needs the tenant key type, added through ITenantBuilder.Add. Packages use it for builder methods that take a type parameter of their own, such as a DbContext type.

public interface ITenantRegistration

Methods

Apply<TKey>(ITenantBuilder<TKey>)

Registers the feature's services for the tenant key type TKey.

void Apply<TKey>(ITenantBuilder<TKey> tenant) where TKey : IEquatable<TKey>, IParsable<TKey>

Type parameters:

  • TKey: The tenant key type of the builder.

Parameters:

On this page