Пример #1
0
        static void Register(Type actor)
        {
            var type = RegisterThis(actor);

            ActorInterface.Register(type);
            ActorPrototype.Register(type);
            ActorEndpointFactory.Register(type);
            StreamProvider.Register(type);
            Ref.Register(type);
        }
Пример #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);
        }
Пример #3
0
        static void Register(Assembly assembly)
        {
            var actors = assembly
                         .GetTypes()
                         .Where(x =>
                                !x.IsAbstract &&
                                typeof(Actor).IsAssignableFrom(x));

            foreach (var type in actors)
            {
                ActorTypeCode.Register(type);
                ActorPrototype.Register(type);
                ActorEndpointDynamicFactory.Register(type);
            }
        }