public IPEndPoint[] Run() { if (servers != null) { throw new InvalidOperationException("Already started"); } servers = new MemcachedServerGroup(3); return(servers.Run()); }
public IPEndPoint[] Run() { lock (serverLock) { if (servers == null) { servers = new MemcachedServerGroup(3); endpoints = servers.Run(); } } return(endpoints); }