Tenantry ProAPI reference
RebusProBuilderExtensions class
Namespace: Tenantry.Pro.Rebus.Extensions · Package: Tenantry.Pro.Rebus · API reference
Extension methods for registering Rebus tenant-propagation services on ProBuilder<TKey>.
public static class RebusProBuilderExtensionsMethods
AddRebusTenantSteps<TKey>(ProBuilder<TKey>, Action<TenantPropagationOptions>?)
Registers TenantOutgoingStep<TKey> and TenantIncomingStep<TKey> as singletons in DI. After registration, wire them into Rebus using options.UseTenantryPro(sp) inside your services.AddRebus(...) callback.
public static ProBuilder<TKey> AddRebusTenantSteps<TKey>(this ProBuilder<TKey> builder, Action<TenantPropagationOptions>? configure = null) where TKey : IEquatable<TKey>, IParsable<TKey>Type parameters:
TKey: The tenant identifier type.
Parameters:
builderProBuilder<TKey>: The Pro builder.configureAction<TenantPropagationOptions>: Optional configuration of the tenant-propagation policy — in particularTenantPropagationOptions.OnMissingTenant, which controls what happens to an incoming message that has no resolvable tenant. Defaults toWarn.
Returns: ProBuilder<TKey>: The same builder for chaining.