Akka.Routing.ConsistentHashingRoutingLogic.WithHashMapping C# (CSharp) Method

WithHashMapping() public method

Creates a new ConsistentHashingRoutingLogic router logic with a given ConsistentHashMapping. This method is immutable and returns a new instance of the router.
The mapping can not be null.
public WithHashMapping ( ConsistentHashMapping mapping ) : ConsistentHashingRoutingLogic
mapping ConsistentHashMapping The used to configure the new router.
return ConsistentHashingRoutingLogic
        public ConsistentHashingRoutingLogic WithHashMapping(ConsistentHashMapping mapping)
        {
            if (mapping == null)
                throw new ArgumentNullException("mapping");

            return new ConsistentHashingRoutingLogic(_system, _vnodes, mapping);
        }
    }