-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathFluxClientFactory.cs
36 lines (33 loc) · 1.34 KB
/
FluxClientFactory.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
namespace InfluxDB.Client.Flux
{
/// <summary>
/// The Factory that create a instance of a Flux client.
/// </summary>
public class FluxClientFactory
{
/// <summary>
/// Create a instance of the Flux client.
/// </summary>
/// <param name="connectionString">the connectionString to connect to InfluxDB</param>
/// <returns>client</returns>
/// <remarks>Deprecated - please use use object initializer <see cref="FluxClient(string)"/></remarks>
[Obsolete("This method is deprecated. Call 'FluxClient' initializer instead.", false)]
public static FluxClient Create(string connectionString)
{
var options = new FluxConnectionOptions(connectionString);
return Create(options);
}
/// <summary>
/// Create a instance of the Flux client.
/// </summary>
/// <param name="options">the connection configuration</param>
/// <returns></returns>
/// <remarks>Deprecated - please use use object initializer <see cref="FluxClient(FluxConnectionOptions)"/></remarks>
[Obsolete("This method is deprecated. Call 'FluxClient' initializer instead.", false)]
public static FluxClient Create(FluxConnectionOptions options)
{
return new FluxClient(options);
}
}
}