Ejemplo n.º 1
0
        public static void Reset()
        {
            ResetThis();

            ActorInterface.Reset();
            ActorPrototype.Reset();
            ActorEndpointFactory.Reset();

            Ref.Reset();
            StreamSubscriptionMatcher.Reset();
        }
Ejemplo n.º 2
0
        static void Register(Type actor)
        {
            var type = RegisterThis(actor);

            ActorInterface.Register(type);
            ActorPrototype.Register(type);
            ActorEndpointFactory.Register(type);

            Ref.Register(type);
            StreamSubscriptionMatcher.Register(type);
        }
Ejemplo n.º 3
0
        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);
        }