WriteRecords result?

Hi,

Pretty new to Influx so forgive me if this is a stupid question!

I am writing batch data to Influx via C# using the Client library as :

conn.GetWriteApi().WriteRecords(bucket, org, WritePrecision.Ns, _items);

where _items is a list of Line Protocol instructions, and this is working well.

One question though is WriteRecords seems a bit “fire and forget” and returns no result, so I am wondering how would I get information on whether the call was successful?

Thanks,

Mark

Hi @MHeesom,

you can attach event handler. See docs: influxdb-client-csharp/Client at master · influxdata/influxdb-client-csharp · GitHub or you can use WriteApiAsync which directly propagate errors: influxdb-client-csharp/Client at master · influxdata/influxdb-client-csharp · GitHub

Regards