private WindowsProxy GetWindowsProxy(Guid id) { WindowsProxy proxy; lock (windowsProxies) { if (!windowsProxies.TryGetValue(id, out proxy)) { var server = metaDB.GetWindowsServerSync(id, true); if (server == null) { return(null); } proxy = new WindowsProxy(server.Ip, server.Username, server.Password); windowsProxies.Add(id, proxy); } } return(proxy); }