public void ConnectTest() { var bufferManager = new BufferManager(1024 * 1024 * 256, 1024 * 1024 * 256); var serviceManager = new ServiceManager("config", "cache.blocks", bufferManager); serviceManager.Load(); serviceManager.Start(); var server = new AmoebaDaemonManager(); var client = new AmoebaInterfaceManager(); var endpoint = new IPEndPoint(IPAddress.Loopback, 4040); var task = server.Watch(serviceManager, endpoint); client.Connect(endpoint); var s = client.State; client.Exit(); task.Wait(); }