static void Register(Type actor) { var type = RegisterThis(actor); ActorInterface.Register(type); ActorPrototype.Register(type); ActorEndpointFactory.Register(type); Ref.Register(type); StreamSubscriptionMatcher.Register(type); }
void RegisterStreamSubscriptions() { foreach (var actor in ActorType.Registered()) { StreamSubscriptionMatcher.Register(actor.Subscriptions()); } const string id = "stream-subscription-boot"; var properties = new Dictionary <string, string>(); properties["providers"] = string.Join(";", streamProviders .Where(x => x.IsPersistentStreamProvider()) .Select(x => x.Name)); Configuration.Globals.RegisterStorageProvider <StreamSubscriptionBootstrapper>(id, properties); }