//refacto: IActorRegistry as Actor
        public InMemoryActorRegistry(IContainer container, IRemoteActorProxyProvider remoteActorProxyProvider)
        {
            _container = container;
            _remoteActorProxyProvider = remoteActorProxyProvider;

            //refacto: config
            _prefix = DateTime.Now.Ticks.ToString();

            //   Add(() => this, ActorType.Registry, null);
        }
예제 #2
0
 public ClusterRegistry(IContainer container, IDirectory directory, IRemoteActorProxyProvider remoteActorProxyProvider)
 {
     _directory = directory;
     _registry  = new InMemoryActorRegistry(container, remoteActorProxyProvider);
 }