public static Dictionary <LoadingData, string[]> GetControllersIdList() { if (LevelToControllerIds != null) { return(LevelToControllerIds); } try { var service = new TcpClient(); service.Connect(MultiplayerProxyConfigurations.ServiceEndPoint); service.WriteJson(ServiceUnityCommand.GetCompetitionsList); LevelToControllerIds = service.ReadJson <Dictionary <string, string[]> >() .ToDictionary(kvp => LoadingData.Parse(kvp.Key), kvp => kvp.Value); return(LevelToControllerIds); } catch (Exception e) { log.Error("cant load list of controllers id", e); return(null); } }