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