Skip to content

InfluxDBClient should dispose the child clients #17

@bednar

Description

@bednar

The InfluxDBClient should dispose all child clients (api) when InfluxDBClient.Dispose is invoked.

The first dispose should be useles:

_influxDbClient = InfluxDBClientFactory.Create(MockServerUrl, "token".ToCharArray());
_writeApi = _influxDbClient.GetWriteApi();
            
_writeApi.WriteRecord("my-bycjet", "my-org", WritePrecision.Ns, "h2o_feet,location=coyote_creek level\\ description=\"feet 1\",water_level=1.0 1");
            
_writeApi.Dispose();
_influxDbClient.Dispose();

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions