Exemplo n.º 1
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);
            }
        }
Exemplo n.º 2
0
 public static void Reset()
 {
     ActorTypeCode.Reset();
     ActorPrototype.Reset();
     ActorEndpointDynamicFactory.Reset();
 }