public LineProtocolClient ( |
||
serverBaseAddress | ||
database | string | |
username | string | |
password | string | |
return | InfluxDB.LineProtocol.Payload |
public LineProtocolClient(Uri serverBaseAddress, string database, string username = null, string password = null)
{
if (serverBaseAddress == null) throw new ArgumentNullException(nameof(serverBaseAddress));
if (string.IsNullOrEmpty(database)) throw new ArgumentException("A database must be specified");
_httpClient = new HttpClient { BaseAddress = serverBaseAddress };
_database = database;
_username = username;
_password = password;
}