Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Akka.Cluster.Hosting: don't use sharding delegates #424

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

Aaronontheweb
Copy link
Member

@Aaronontheweb Aaronontheweb commented Jan 9, 2024

Changes

laying the groundwork for akkadotnet/akka.net#6863 here - besides, it looks like the old delegates simply can't handle certain messages automatically due to akkadotnet/akka.net#7051

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

laying the groundwork for akkadotnet/akka.net#6863 here - besides, it looks like the old delegates simply can't handle certain messages automatically due to akkadotnet/akka.net#7051
@@ -869,8 +847,23 @@ private static ExtractShardId ToExtractShardId(this IMessageExtractor self)
IMessageExtractor messageExtractor,
ShardOptions shardOptions)
{
return builder.WithShardRegion<TKey>(typeName, entityPropsFactory,
messageExtractor.ToExtractEntityId(), messageExtractor.ToExtractShardId(), shardOptions);
shardOptions.Apply(builder);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had to move 1st citizen sharding code here, although it kind of duplicates the methods that work directly with the Extractor delegates right now.

Copy link
Contributor

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Arkatufus Arkatufus merged commit 1b6d84a into akkadotnet:dev Jan 9, 2024
2 checks passed
@Aaronontheweb Aaronontheweb deleted the sharding-message-extractor branch January 9, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants