Table of Contents

Class TenantIdentityPipelineExtensions

Namespace
Microsoft.Extensions.DependencyInjection
Assembly
Excalibur.Dispatch.dll

Extension methods for adding tenant identity middleware to the dispatch pipeline.

public static class TenantIdentityPipelineExtensions
Inheritance
TenantIdentityPipelineExtensions
Inherited Members

Methods

UseTenantIdentity(IDispatchBuilder)

Adds tenant identity middleware to the dispatch pipeline.

public static IDispatchBuilder UseTenantIdentity(this IDispatchBuilder builder)

Parameters

builder IDispatchBuilder

The dispatch builder.

Returns

IDispatchBuilder

The builder for fluent configuration.

Remarks

The tenant identity middleware resolves the current tenant from the message context and makes it available to downstream handlers via the tenant identity feature.

Tenant resolution services must be registered separately in the DI container. This method only adds the middleware to the pipeline.

Recommended pipeline order:

builder.UseAuthentication()
       .UseTenantIdentity()      // Resolve tenant after authentication
       .UseAuthorization()
       .UseValidation();