/// <summary> /// Adds and configures a RouteStrategy with a route parameter Constants.TenantToken to the application. /// </summary> /// <param name="configRoutes">Delegate to configure the routes.</param> /// <returns>The same MultiTenantBuilder passed into the method.</returns> public static FinbuckleMultiTenantBuilder <TTenantInfo> WithRouteStrategy <TTenantInfo>(this FinbuckleMultiTenantBuilder <TTenantInfo> builder, Action <IRouteBuilder> configRoutes) where TTenantInfo : class, ITenantInfo, new() => builder.WithRouteStrategy(Constants.TenantToken, configRoutes);
/// <summary> /// Adds and configures a RouteStrategy with a route parameter Constants.TenantToken to the application. /// </summary> /// <returns>The same MultiTenantBuilder passed into the method.</returns> public static FinbuckleMultiTenantBuilder <TTenantInfo> WithRouteStrategy <TTenantInfo>( this FinbuckleMultiTenantBuilder <TTenantInfo> builder) where TTenantInfo : class, ITenantInfo, new() => builder.WithRouteStrategy(Constants.TenantToken);
/// <summary> /// Adds and configures a RouteStrategy with a route parameter "\_\_tenant\_\_" to the application. /// </summary> /// <param name="configRoutes">Delegate to configure the routes.</param> /// <returns>The same MultiTenantBuilder passed into the method.</returns> public static FinbuckleMultiTenantBuilder WithRouteStrategy(this FinbuckleMultiTenantBuilder builder, Action <IRouteBuilder> configRoutes) => builder.WithRouteStrategy("__tenant__", configRoutes);