Exemple #1
0
        internal static void Register(ActorType type)
        {
            foreach (var specification in StreamSubscriptionSpecification.From(type))
            {
                var specifications = configuration.Find(specification.Provider);

                if (specifications == null)
                {
                    specifications = new List <StreamSubscriptionSpecification>();
                    configuration.Add(specification.Provider, specifications);
                }

                specifications.Add(specification);
            }
        }
Exemple #2
0
 internal IEnumerable <StreamSubscriptionSpecification> Subscriptions() =>
 StreamSubscriptionSpecification.From(actor, dispatcher);