Пример #1
0
        /// <summary>
        ///     Create a new Database.
        /// </summary>
        /// <param name="name">The name of the new database</param>
        /// <returns></returns>
        public async Task <InfluxDbApiCreateResponse> CreateDatabaseAsync(string name)
        {
            var db = new Database {
                Name = name
            };

            InfluxDbApiResponse response = await _influxDbClient.CreateDatabase(NoErrorHandlers, db);

            return(new InfluxDbApiCreateResponse(response.StatusCode, response.Body));
        }
Пример #2
0
        /// <summary>
        /// Create a new Database.
        /// </summary>
        /// <param name="name">The name of the new database</param>
        /// <returns></returns>
        public async Task <InfluxDbApiResponse> CreateDatabaseAsync(string name)
        {
            var db = new Database {
                Name = name
            };

            return(await _influxDbClient.CreateDatabase(NoErrorHandlers, db));
        }
 public async Task <InfluxDbApiResponse> CreateDatabase(IEnumerable <ApiResponseErrorHandlingDelegate> errorHandlers, Database database)
 {
     return(await _influxDbClient.CreateDatabase(errorHandlers, database));
 }