public IPEndPoint[] Run()
        {
            if (servers != null)
            {
                throw new InvalidOperationException("Already started");
            }

            servers = new MemcachedServerGroup(3);

            return(servers.Run());
        }
Exemplo n.º 2
0
        public IPEndPoint[] Run()
        {
            lock (serverLock)
            {
                if (servers == null)
                {
                    servers   = new MemcachedServerGroup(3);
                    endpoints = servers.Run();
                }
            }

            return(endpoints);
        }