/// <summary>Gets the instance.</summary> /// <param name="settings">The settings.</param> public static VoltDBConnectionPool GetInstance(ConnectionSettings settings) { if (instance == null) { instance = new VoltDBConnectionPool(settings); } return(instance); }
private static VoltDBConnectionPool GetPool( ConnectionSettings connectionSettings) { if (pool == null) { pool = VoltDBConnectionPool.GetInstance(connectionSettings); } return(pool); }
/// <summary>Initializes a new instance of the <see cref="VoltConnectionProxy"/> class.</summary> /// <param name="pool">The pool.</param> /// <param name="settings">The settings.</param> /// <param name="isPersistent">if set to <c>true</c> [is persistent].</param> public VoltConnectionProxy( VoltDBConnectionPool pool, ConnectionSettings settings, bool isPersistent = false) { this.pool = pool; this.connection = VoltConnection.Create(settings); this.isPersistent = isPersistent; }