InfluxDB.LineProtocol.Client.LineProtocolClient.LineProtocolClient C# (CSharp) Method

LineProtocolClient() public method

public LineProtocolClient ( Uri serverBaseAddress, string database, string username = null, string password = null ) : InfluxDB.LineProtocol.Payload
serverBaseAddress System.Uri
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;
        }