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); } }
internal IEnumerable <StreamSubscriptionSpecification> Subscriptions() => StreamSubscriptionSpecification.From(actor, dispatcher);