Skip to content

Auto-configure client from configuration file #18

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
bednar opened this issue Jun 21, 2019 · 0 comments · Fixed by #20
Closed

Auto-configure client from configuration file #18

bednar opened this issue Jun 21, 2019 · 0 comments · Fixed by #20
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@bednar
Copy link
Contributor

bednar commented Jun 21, 2019

InfluxDBClient loads configuration form the App.config file automatically.
All you have to do is to add configuration to your App.config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <configSections>
        <section name="influx2" type="InfluxDB.Client.Configurations.Influx2, InfluxDB.Client" />
    </configSections>

    <influx2 url="http://localhost:9999"
             org="my-org"
             bucket="my-bucket"
             token="my-token"
             logLevel="BODY"
             readWriteTimeout="5s"
             timeout="10s">
    </influx2>
</configuration>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant