static void ConfigureReceiverSideDistributionCandidateVoteCount(RoutingSettings <AzureServiceBusTransport> routing, PartitionsInformation partitionInfo) { #region ConfigureReceiverSideDistribution-CandidateVoteCount var receiverSideDistribution = routing.EnableReceiverSideDistribution(partitionInfo.Partitions); receiverSideDistribution.AddPartitionMappingForMessageType <VotePlaced>( mapMessageToPartitionKey: votePlaced => { return(votePlaced.Candidate); }); #endregion }