コード例 #1
0
        public SubscriptionManager(ActorSystem actorSystem, IAtomDocumentSettings atomDocumentSettings)
        {
            var settings = ClusterShardingSettings.Create(actorSystem);

            var props = Props.Create(() => new SubscriptionActor(atomDocumentSettings));

            var messageExtractor = new LoggingMessageExtractorDecorator(new SubscriptionMessageExtractor(), actorSystem.Log);

            SubscriptionActorRef = ClusterSharding.Get(actorSystem).Start(
                typeName: "SubscriptionActor",
                entityProps: props,
                settings: settings,
                messageExtractor: messageExtractor);
        }
コード例 #2
0
        public SubscriptionManager(ActorSystem actorSystem, IAtomDocumentSettings atomDocumentSettings)
        {
            var settings = ClusterShardingSettings.Create(actorSystem);

            var props = Props.Create(() => new SubscriptionActor(atomDocumentSettings));

            var messageExtractor = new LoggingMessageExtractorDecorator(new SubscriptionMessageExtractor(), actorSystem.Log);

            SubscriptionActorRef = ClusterSharding.Get(actorSystem).Start(
                typeName: "SubscriptionActor",
                entityProps: props,
                settings: settings,
                messageExtractor: messageExtractor);
        }