Influxdb.client on blazor webassembly?

Im trying influb db as a datastore, and have a test windows form app written ok.
I have tried the same code in blazor web assembly and it does not work (locks up).
blazor web assembly is still in preview, has anyone else tried it ?

sample code:

        public static async Task  ReadData()
        {

            char[] Token = "mytoken".ToCharArray();


            //var influxDBClient = InfluxDBClientFactory.Create("http://localhost:9999", Token);
            var influxDBClient = InfluxDBClientFactory.Create("https://us-west-2-1.aws.cloud2.influxdata.com/", Token);

            string orgid = "myorigin";
            //
            // Query data
            //|> range(start: -5m)
            //var flux = "from(bucket:\"DemoData\") |> range(start: 0)";
            var flux = "from(bucket:\"DemoData\") |> range(start: -5m)";

            try
            {
                var fluxTables = await influxDBClient.GetQueryApi().QueryAsync(flux, orgid);

                fluxTables.ForEach(fluxTable =>
                {
                    var fluxRecords = fluxTable.Records;
                    fluxRecords.ForEach(fluxRecord =>
                    {
                    string timestring = fluxRecord.GetTimeInDateTime().ToString();
                    Console.WriteLine($"{fluxRecord.GetTime()}\t{fluxRecord.GetValue()}" + "\t" + timestring);
                    });
                });
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

            influxDBClient.Dispose();
        }