Service Fabric - Calling a named partition for a stateful service

Viewed 906

I can't seem to figure out how to send a call to a specific named partition using ServiceProxy and there doesn't seem to be any documentation specific to this. This is how you would do it for a Int64RangePartitionInformation

var partitionInformation = (Int64RangePartitionInformation)selectedPartition.PartitionInformation;
var partitionKey = ServicePartitionKey(partitionInformation.LowKey);    
IListen listenerClient = ServiceProxy.Create<IListen>(uri,partitionKey );

But there doesn't seem to be a way to get ServicePartitionKey for NamedPartitionInformation. Do you include the partition name in the Uri or something?

1 Answers
Related