public Task <FileMetaData[]> GetLocalSaveFiles() { string connectionId = Context.ConnectionId; if (Context.Items.TryGetValue(connectionId, out object serverId)) { string id = (string)serverId; var files = _factorioServerManager.GetLocalSaveFiles(id); return(Task.FromResult(files)); } return(Task.FromResult(new FileMetaData[0])); }