Beispiel #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);
            }
        }
Beispiel #2
0
 internal static IActorEndpoint Proxy(ActorPath path)
 {
     return(ActorEndpointDynamicFactory.Proxy(path));
 }
Beispiel #3
0
 public static void Reset()
 {
     ActorTypeCode.Reset();
     ActorPrototype.Reset();
     ActorEndpointDynamicFactory.Reset();
 }