Exemplo n.º 1
0
        protected void Configure()
        {
            if (serializer != null)
            {
                var instance = (IMessageSerializer)Activator.CreateInstance(serializer.Item1);
                instance.Init(assemblies.ToArray(), serializer.Item2 ?? new Dictionary <string, string>());

                MessageEnvelope.Serializer = instance;
            }

            if (activator != null)
            {
                var instance = (IActorActivator)Activator.CreateInstance(activator.Item1);
                instance.Init(activator.Item2);

                ActorEndpoint.Activator = instance;
            }

            ActorType.Register(assemblies);
        }
Exemplo n.º 2
0
 void RegisterTypes() => ActorType.Register(assemblies);
Exemplo n.º 3
0
 void RegisterTypes() => ActorType.Register(registry.Assemblies, conventions.Count > 0 ? conventions.ToArray() : null);