Akka.Routing.ConsistentHashingGroup.WithFallback C# (CSharp) Method

WithFallback() public method

Configure the current router with an auxiliary router for routes that it does not know how to handle.
Expected ConsistentHashingGroup, got .
public WithFallback ( Akka.Routing.RouterConfig routerConfig ) : Akka.Routing.RouterConfig
routerConfig Akka.Routing.RouterConfig The router to use as an auxiliary source.
return Akka.Routing.RouterConfig
        public override RouterConfig WithFallback(RouterConfig routerConfig)
        {
            if (routerConfig is FromConfig || routerConfig is NoRouter)
            {
                return base.WithFallback(routerConfig);
            }
            else if (routerConfig is ConsistentHashingGroup)
            {
                var other = routerConfig as ConsistentHashingGroup;
                return WithHashMapping(other.HashMapping);
            }
            else
            {
                throw new ArgumentException(string.Format("Expected ConsistentHashingGroup, got {0}", routerConfig),
                    "routerConfig");
            }
        }