# API reference

The docs of Tenantry 0.7 (Core v0.7.0, Pro v0.7.0), the newest release. Web page: https://tenantry.dev/docs/core/api

Every public type in the packages, generated from their XML documentation comments. The guides explain how
the pieces fit together; this reference is for the details of each type and member.

## Tenantry.AspNetCore

### `Microsoft.AspNetCore.Builder`

| Type | Kind | Summary |
|------|------|---------|
| [`TenantryApplicationBuilderExtensions`](https://tenantry.dev/docs/core/api/microsoft-aspnetcore-builder-tenantryapplicationbuilderextensions.md) | class | Adds Tenantry's tenant resolution to the request pipeline. |
| [`TenantryEndpointConventionBuilderExtensions`](https://tenantry.dev/docs/core/api/microsoft-aspnetcore-builder-tenantryendpointconventionbuilderextensions.md) | class | Extension methods for applying Tenantry endpoint metadata. |

### `Microsoft.Extensions.DependencyInjection`

| Type | Kind | Summary |
|------|------|---------|
| [`TenantryAspNetCoreTenantBuilderExtensions`](https://tenantry.dev/docs/core/api/microsoft-extensions-dependencyinjection-tenantryaspnetcoretenantbuilderextensions.md) | class | Tenantry's ASP.NET Core features on [`ITenantBuilder<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantbuilder-1.md): how a request is resolved to a tenant, whether endpoints need one, and who may use it. `app.UseTenantry()` applies them to requests. |

### `Tenantry.AspNetCore`

| Type | Kind | Summary |
|------|------|---------|
| [`AllowMissingTenantAttribute`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-allowmissingtenantattribute.md) | class | Allows an endpoint or controller action to execute without a resolved tenant. |
| [`ClaimTenantResolver`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-claimtenantresolver.md) | class | Resolves the tenant from a claim on the current request principal. |
| [`HeaderTenantResolver`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-headertenantresolver.md) | class | Resolves the tenant from a request header (e.g. `X-Tenant-Id`). |
| [`HostTenantResolver`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-hosttenantresolver.md) | class | Resolves the tenant from the request's host name, for tenants that bring their own domain: a request to `app.acme.com` has the identifier `app.acme.com`, which your tenant store's [`ITenantStore<TKey>.FindByIdentifierAsync`](https://tenantry.dev/docs/core/api/tenantry-itenantstore.md) maps to a tenant. |
| [`HostTenantResolverOptions`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-hosttenantresolveroptions.md) | class | Options for [`HostTenantResolver`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-hosttenantresolver.md), set with `tenant.ResolveFromHost(o => …)`. |
| [`ITenantAccessValidator<TKey>`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-itenantaccessvalidator.md) | interface | Decides whether a request may use the tenant it names. |
| [`ITenantResolver`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-itenantresolver.md) | interface | Reads a tenant identifier from an HTTP request: the tenant's id, or a name the tenant store maps to a tenant, such as a subdomain or a host name (see [`ITenantStore<TKey>.FindByIdentifierAsync`](https://tenantry.dev/docs/core/api/tenantry-itenantstore.md)). |
| [`QueryStringTenantResolver`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-querystringtenantresolver.md) | class | Resolves the tenant from a query string parameter (e.g. `?tenantId=acme`). |
| [`RequireTenantAttribute`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-requiretenantattribute.md) | class | Requires Tenantry to resolve a tenant before the endpoint or controller action executes. |
| [`RouteValueTenantResolver`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-routevaluetenantresolver.md) | class | Resolves the tenant from a route value (e.g. `/api/{tenant}/resource`). |
| [`SubdomainTenantResolver`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-subdomaintenantresolver.md) | class | Resolves the tenant from the subdomain of the request host. For example, `acme.app.example.com` resolves to `acme`. |
| [`SubdomainTenantResolverOptions`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-subdomaintenantresolveroptions.md) | class | Options for [`SubdomainTenantResolver`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-subdomaintenantresolver.md), set with `tenant.ResolveFromSubdomain(o => …)`. |
| [`TenantRejectedContext<TKey>`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-tenantrejectedcontext.md) | class | A request that `app.UseTenantry()` rejects, passed to [`TenantResolutionOptions<TKey>.OnRejected`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-tenantresolutionoptions.md). |
| [`TenantRejectionReason`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-tenantrejectionreason.md) | enum | Why `app.UseTenantry()` rejects a request to an endpoint that needs a tenant. |
| [`TenantResolutionOptions<TKey>`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-tenantresolutionoptions.md) | class | How `app.UseTenantry()` treats requests: whether they need a tenant, the status code of each rejection, and the events it raises. Configure it with `tenant.ConfigureResolution(o => …)` or `tenant.RequireTenantByDefault()`. |
| [`TenantResolvedContext<TKey>`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-tenantresolvedcontext.md) | class | The request whose tenant `app.UseTenantry()` made current, passed to [`TenantResolutionOptions<TKey>.OnResolved`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-tenantresolutionoptions.md). |
| [`TenantryAspNetCoreTelemetry`](https://tenantry.dev/docs/core/api/tenantry-aspnetcore-tenantryaspnetcoretelemetry.md) | class | The names `app.UseTenantry()` records requests under, for OpenTelemetry's `AddSource` and `AddMeter`, and for log filters. The request's tenant itself goes under [`TenantTelemetry`](https://tenantry.dev/docs/core/api/tenantry-tenanttelemetry.md)'s names. |

## Tenantry.Caching

### `Microsoft.Extensions.DependencyInjection`

| Type | Kind | Summary |
|------|------|---------|
| [`TenantryCachingTenantBuilderExtensions`](https://tenantry.dev/docs/core/api/microsoft-extensions-dependencyinjection-tenantrycachingtenantbuilderextensions.md) | class | Keeps cached data per tenant. |

### `Tenantry.Caching`

| Type | Kind | Summary |
|------|------|---------|
| [`ITenantDistributedCache`](https://tenantry.dev/docs/core/api/tenantry-caching-itenantdistributedcache.md) | interface | The registered `IDistributedCache`, with every key under the current tenant's prefix, for code that uses `IDistributedCache` directly and keeps data per tenant. Without a tenant, every call throws [`TenantNotResolvedException`](https://tenantry.dev/docs/core/api/tenantry-tenantnotresolvedexception.md). |
| [`SharedHybridCache`](https://tenantry.dev/docs/core/api/tenantry-caching-sharedhybridcache.md) | class | The `HybridCache` for entries every tenant shares (exchange rates, reference data), where `IsolateCaches()` makes the injected `HybridCache` keep entries per tenant. |

## Tenantry.Core

### `Microsoft.Extensions.DependencyInjection`

| Type | Kind | Summary |
|------|------|---------|
| [`TenantryServiceCollectionExtensions`](https://tenantry.dev/docs/core/api/microsoft-extensions-dependencyinjection-tenantryservicecollectionextensions.md) | class | Registers Tenantry. |
| [`TenantryTenantBuilderExtensions`](https://tenantry.dev/docs/core/api/microsoft-extensions-dependencyinjection-tenantrytenantbuilderextensions.md) | class | Tenantry's core features on [`ITenantBuilder<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantbuilder-1.md): the tenant store, its cache, invalidation across instances, and per-tenant connection strings. |

### `Tenantry`

| Type | Kind | Summary |
|------|------|---------|
| [`CurrentTenantConnectionString<TKey>`](https://tenantry.dev/docs/core/api/tenantry-currenttenantconnectionstring.md) | class | Returns the current tenant's connection string, through the registered [`ITenantConnectionStringProvider<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantconnectionstringprovider.md). |
| [`ITenantActivity<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantactivity.md) | interface | Whether a tenant may have work run for it, as the registered [`ITenantActivityValidator<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantactivityvalidator.md)s decide. |
| [`ITenantActivityValidator<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantactivityvalidator.md) | interface | Decides whether a tenant may have work run for it: requests, background work, jobs and messages. |
| [`ITenantBuilder`](https://tenantry.dev/docs/core/api/tenantry-itenantbuilder.md) | interface | The builder `AddTenantry` passes to its configuration callback, without the tenant key type. Features that take a type parameter of their own register through [`ITenantBuilder.Add`](https://tenantry.dev/docs/core/api/tenantry-itenantbuilder.md), so their callers never repeat the key type. |
| [`ITenantBuilder<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantbuilder-1.md) | interface | The builder `AddTenantry<TKey>` passes to its configuration callback. |
| [`ITenantConnectionStringProvider<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantconnectionstringprovider.md) | interface | Returns a tenant's connection string, as configured by [`TenantConnectionStringOptions<TKey>`](https://tenantry.dev/docs/core/api/tenantry-tenantconnectionstringoptions.md). |
| [`ITenantContext<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantcontext.md) | interface | The current tenant, for a request or an [`ITenantScopeFactory<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantscopefactory.md) scope. |
| [`ITenantContextSetter<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantcontextsetter.md) | interface | Makes a tenant current for the calling code, for code that has already found the tenant and needs no new dependency-injection scope. Most code uses [`ITenantScopeFactory<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantscopefactory.md) instead, which also creates a scope for the tenant's services. |
| [`ITenantDescriptor`](https://tenantry.dev/docs/core/api/tenantry-itenantdescriptor.md) | interface | A tenant, without its identifier type: the base of [`ITenantDescriptor<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantdescriptor-1.md), for code that does not need the tenant's id, such as [`TenantDescriptorExtensions.As<TTenant>`](https://tenantry.dev/docs/core/api/tenantry-tenantdescriptorextensions.md). |
| [`ITenantDescriptor<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantdescriptor-1.md) | interface | Represents a resolved tenant. |
| [`ITenantEntity<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantentity.md) | interface | Marks an entity that belongs to a tenant. |
| [`ITenantInvalidationHandler<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantinvalidationhandler.md) | interface | Clears data kept per tenant when the tenant changes, or, registered with `BroadcastInvalidations`, publishes the invalidation to the application's other instances. Every registered handler runs on [`ITenantInvalidator<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantinvalidator.md) invalidation, with or without `CacheTenants`. |
| [`ITenantInvalidator<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantinvalidator.md) | interface | Clears everything Tenantry keeps for a tenant when the tenant changes: its cached copy (with `CacheTenants`) and what each [`ITenantInvalidationHandler<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantinvalidationhandler.md) keeps, such as Tenantry.Caching's entries, cached responses and Tenantry.Options' values. |
| [`ITenantLookup<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantlookup.md) | interface | Reads tenants from the registered [`ITenantStore<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantstore.md) on behalf of singletons, such as hosted services, resolving the store from a fresh dependency-injection scope for each call. |
| [`ITenantScope<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantscope.md) | interface | A dependency-injection scope with a tenant current, created by [`ITenantScopeFactory<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantscopefactory.md). |
| [`ITenantScopeFactory<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantscopefactory.md) | interface | Opens tenant scopes for work that runs outside an HTTP request: hosted services, queue consumers, scheduled jobs and console tools. Each scope pairs a fresh dependency-injection scope with an active tenant, so scoped services such as a `DbContext` are created for that tenant and isolated to it. |
| [`ITenantStore<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantstore.md) | interface | Finds and lists the application's tenants. |
| [`InMemoryTenantStore<TKey>`](https://tenantry.dev/docs/core/api/tenantry-inmemorytenantstore.md) | class | An [`ITenantStore<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantstore.md) backed by an in-memory dictionary. |
| [`TenantConnectionStringOptions<TKey>`](https://tenantry.dev/docs/core/api/tenantry-tenantconnectionstringoptions.md) | class | How to find each tenant's connection string, for applications that give tenants their own database (or route them to different servers). Configure it with `UseConnectionStrings` and read connection strings through [`ITenantConnectionStringProvider<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantconnectionstringprovider.md), or the current tenant's through [`CurrentTenantConnectionString<TKey>`](https://tenantry.dev/docs/core/api/tenantry-currenttenantconnectionstring.md). |
| [`TenantDescriptor<TKey>`](https://tenantry.dev/docs/core/api/tenantry-tenantdescriptor.md) | class | Default implementation of [`ITenantDescriptor<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantdescriptor-1.md). |
| [`TenantDescriptorExtensions`](https://tenantry.dev/docs/core/api/tenantry-tenantdescriptorextensions.md) | class | Reads a tenant as the application's own tenant type. |
| [`TenantEntity<TKey>`](https://tenantry.dev/docs/core/api/tenantry-tenantentity.md) | class | Optional base class for tenant-owned entities, implementing [`ITenantEntity<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantentity.md). |
| [`TenantInactiveException`](https://tenantry.dev/docs/core/api/tenantry-tenantinactiveexception.md) | class | Thrown when work is to run for a tenant that an [`ITenantActivityValidator<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantactivityvalidator.md) refuses, such as a suspended tenant, for example by [`ITenantScopeFactory<TKey>.RunInScopeAsync`](https://tenantry.dev/docs/core/api/tenantry-itenantscopefactory.md). |
| [`TenantNotFoundException`](https://tenantry.dev/docs/core/api/tenantry-tenantnotfoundexception.md) | class | Thrown when a tenant is looked up by its id and the tenant store has no tenant with that id, for example by [`ITenantScopeFactory<TKey>.RunInScopeAsync`](https://tenantry.dev/docs/core/api/tenantry-itenantscopefactory.md). |
| [`TenantNotResolvedException`](https://tenantry.dev/docs/core/api/tenantry-tenantnotresolvedexception.md) | class | Thrown when an operation needs a current tenant and none is current. Derived types cover a named tenant that does not exist ([`TenantNotFoundException`](https://tenantry.dev/docs/core/api/tenantry-tenantnotfoundexception.md)) or is inactive ([`TenantInactiveException`](https://tenantry.dev/docs/core/api/tenantry-tenantinactiveexception.md)). |
| [`TenantPropagation`](https://tenantry.dev/docs/core/api/tenantry-tenantpropagation.md) | class | How Tenantry carries a tenant from one process to another: Tenantry.Http's outgoing requests, Tenantry.AspNetCore's `ResolveFromPropagationHeader(...)` on the receiving side, and Tenantry.Pro's Hangfire, MassTransit, Quartz.NET and Rebus integrations. |
| [`TenantStoreCacheOptions`](https://tenantry.dev/docs/core/api/tenantry-tenantstorecacheoptions.md) | class | How Tenantry caches the tenants it reads from the tenant store. Set with `tenant.CacheTenants(o => …)`. |
| [`TenantTelemetry`](https://tenantry.dev/docs/core/api/tenantry-tenanttelemetry.md) | class | The names Tenantry records a tenant under in traces and logs: Tenantry.AspNetCore's `app.UseTenantry()` for a request, and Tenantry.Pro for jobs, messages and background work. |

### Extension points

For code that extends the package, such as another package that builds on it. An application rarely needs them.

| Type | Namespace | Kind | Summary |
|------|-----------|------|---------|
| [`ITenantKeyType`](https://tenantry.dev/docs/core/api/tenantry-itenantkeytype.md) | `Tenantry` | interface | The tenant key type the application registered Tenantry with, for code that has only a service provider, such as a health check registration or a host extension, so its callers never repeat the key type. |
| [`ITenantKeyTypeVisitor<TResult>`](https://tenantry.dev/docs/core/api/tenantry-itenantkeytypevisitor.md) | `Tenantry` | interface | Code that needs the tenant key type, given it by [`ITenantKeyType`](https://tenantry.dev/docs/core/api/tenantry-itenantkeytype.md). |
| [`ITenantRegistration`](https://tenantry.dev/docs/core/api/tenantry-itenantregistration.md) | `Tenantry` | interface | A registration that needs the tenant key type, added through [`ITenantBuilder.Add`](https://tenantry.dev/docs/core/api/tenantry-itenantbuilder.md). Packages use it for builder methods that take a type parameter of their own, such as a `DbContext` type. |
| [`TenantIds`](https://tenantry.dev/docs/core/api/tenantry-tenantids.md) | `Tenantry` | class | Tenant ids as text, and the ids Tenantry reserves for "no tenant". Tenantry formats and parses tenant ids this way wherever they leave or enter the process: in log scopes and traces, in the headers Tenantry.Http and Tenantry.Pro's jobs and messages carry, and in the identifiers [`ITenantStore<TKey>.FindByIdentifierAsync`](https://tenantry.dev/docs/core/api/tenantry-itenantstore.md) reads by default. |

## Tenantry.EfCore

### `Microsoft.EntityFrameworkCore`

| Type | Kind | Summary |
|------|------|---------|
| [`TenantryDbContextOptionsBuilderExtensions`](https://tenantry.dev/docs/core/api/microsoft-entityframeworkcore-tenantrydbcontextoptionsbuilderextensions.md) | class | Extension methods for wiring Tenantry into `DbContextOptionsBuilder`. |
| [`TenantryEntityTypeBuilderExtensions`](https://tenantry.dev/docs/core/api/microsoft-entityframeworkcore-tenantryentitytypebuilderextensions.md) | class | Marks entity types in the model for Tenantry. |

### `Microsoft.Extensions.DependencyInjection`

| Type | Kind | Summary |
|------|------|---------|
| [`TenantryEfCoreTenantBuilderExtensions`](https://tenantry.dev/docs/core/api/microsoft-extensions-dependencyinjection-tenantryefcoretenantbuilderextensions.md) | class | Extension methods for configuring EF Core tenant isolation on [`ITenantBuilder<TKey>`](https://tenantry.dev/docs/core/api/tenantry-itenantbuilder-1.md). |

### `Tenantry.EfCore`

| Type | Kind | Summary |
|------|------|---------|
| [`EfCoreIsolationOptions`](https://tenantry.dev/docs/core/api/tenantry-efcore-efcoreisolationoptions.md) | class | Options for EF Core tenant isolation: the application's, set with `tenant.ConfigureEfCoreIsolation(options => …)`, or one context's, set with `options.UseTenantry(o => …)`. |
| [`MissingTenantBehavior`](https://tenantry.dev/docs/core/api/tenantry-efcore-missingtenantbehavior.md) | enum | What `SaveChanges` does when it writes tenant-owned entities and no tenant is current. Set with [`EfCoreIsolationOptions.OnMissingTenant`](https://tenantry.dev/docs/core/api/tenantry-efcore-efcoreisolationoptions.md). |
| [`SaveWithoutTransactionBehavior`](https://tenantry.dev/docs/core/api/tenantry-efcore-savewithouttransactionbehavior.md) | enum | What `SaveChanges` does when `Database.AutoTransactionBehavior` is `Never`, no transaction is open, and some rows it writes are tenant-checked by another of its statements. Set with [`EfCoreIsolationOptions.OnSaveWithoutTransaction`](https://tenantry.dev/docs/core/api/tenantry-efcore-efcoreisolationoptions.md). |
| [`SharedAcrossTenantsAttribute`](https://tenantry.dev/docs/core/api/tenantry-efcore-sharedacrosstenantsattribute.md) | class | Marks an entity type whose rows every tenant shares, such as a country list or the tenant table itself. |
| [`TenantIsolationViolationException`](https://tenantry.dev/docs/core/api/tenantry-efcore-tenantisolationviolationexception.md) | class | Thrown when EF Core would read or write across tenants. [`TenantIsolationViolationException.Kind`](https://tenantry.dev/docs/core/api/tenantry-efcore-tenantisolationviolationexception.md) says which check failed. |
| [`TenantIsolationViolationKind`](https://tenantry.dev/docs/core/api/tenantry-efcore-tenantisolationviolationkind.md) | enum | Which isolation check threw a [`TenantIsolationViolationException`](https://tenantry.dev/docs/core/api/tenantry-efcore-tenantisolationviolationexception.md). |
| [`TenantryQueryFilters`](https://tenantry.dev/docs/core/api/tenantry-efcore-tenantryqueryfilters.md) | class | The names of the query filters Tenantry adds or names on EF Core 10 and later. |
| [`UnmarkedEntityTypeBehavior`](https://tenantry.dev/docs/core/api/tenantry-efcore-unmarkedentitytypebehavior.md) | enum | What a context does when its model has tenant-owned entity types and also entity types that are neither tenant-owned nor marked as shared across tenants. Set with [`EfCoreIsolationOptions.OnUnmarkedEntityType`](https://tenantry.dev/docs/core/api/tenantry-efcore-efcoreisolationoptions.md). |

### Extension points

For code that extends the package, such as another package that builds on it. An application rarely needs them.

| Type | Namespace | Kind | Summary |
|------|-----------|------|---------|
| [`ITenantDbContextOptionsContributor`](https://tenantry.dev/docs/core/api/tenantry-efcore-itenantdbcontextoptionscontributor.md) | `Tenantry.EfCore` | interface | Adds to the options of every `DbContext` that uses `UseTenantry()`. |
| [`ITenantModelContributor`](https://tenantry.dev/docs/core/api/tenantry-efcore-itenantmodelcontributor.md) | `Tenantry.EfCore` | interface | Adds to the model of every `DbContext` that uses `UseTenantry()`. |
| [`TenantContextGuard`](https://tenantry.dev/docs/core/api/tenantry-efcore-tenantcontextguard.md) | `Tenantry.EfCore` | class | An interceptor that checks a context before it opens a connection, before every command it runs and before `SaveChanges`, so a context that would reach the wrong tenant's data throws instead. |
| [`TenantModel`](https://tenantry.dev/docs/core/api/tenantry-efcore-tenantmodel.md) | `Tenantry.EfCore` | class | Reads which entity types of an EF Core model Tenantry isolates, for packages and tests that build on it. |

## Tenantry.Http

### `Microsoft.Extensions.DependencyInjection`

| Type | Kind | Summary |
|------|------|---------|
| [`TenantryHttpClientBuilderExtensions`](https://tenantry.dev/docs/core/api/microsoft-extensions-dependencyinjection-tenantryhttpclientbuilderextensions.md) | class | Sends the current tenant with an HTTP or gRPC client's requests. |
| [`TenantryHttpTenantBuilderExtensions`](https://tenantry.dev/docs/core/api/microsoft-extensions-dependencyinjection-tenantryhttptenantbuilderextensions.md) | class | Sends the current tenant to the services an application calls over HTTP or gRPC. |

## Tenantry.Options

### `Microsoft.Extensions.DependencyInjection`

| Type | Kind | Summary |
|------|------|---------|
| [`TenantryOptionsTenantBuilderExtensions`](https://tenantry.dev/docs/core/api/microsoft-extensions-dependencyinjection-tenantryoptionstenantbuilderextensions.md) | class | Options with values per tenant. |

### `Tenantry.Options`

| Type | Kind | Summary |
|------|------|---------|
| [`TenantOptionsBuilder<TKey>`](https://tenantry.dev/docs/core/api/tenantry-options-tenantoptionsbuilder.md) | class | Sets options per tenant, in `tenant.ConfigurePerTenant(...)`: each `Configure` or `ConfigureAll` names an options type and what differs for each tenant. |
