Class ClusteredRoutePolicyFactory

Assembly: redb.Tsak.Core.Pro.dll

Factory that automatically creates for routes
marked with .Cluster(true) in their definition, except routes consuming from a Quartz endpoint
(cron:, qtimer:): their clustered job store already fires each job on one node.
Registered in DI when cluster mode is enabled.

public sealed class ClusteredRoutePolicyFactory : IRoutePolicyFactory

Inheritance

Object→ClusteredRoutePolicyFactory

Implements

Methods

CreateRoutePolicy(IRouteContext, string, RouteDefinition)

Creates a route policy for the given route, or returns null if this factory

public IRoutePolicy? CreateRoutePolicy(IRouteContext context, string routeId, RouteDefinition definition)

Constructors