/// <summary> /// Initializes a new instance of the <see cref="BalancingKdbPlusDatabaseClient"/> class. /// </summary> /// <param name="dispatcher">The dispatcher.</param> public BalancingKdbPlusDatabaseClient(ConnectionDispatcher dispatcher) : base(GetConnection(dispatcher)) { }
private static KdbPlusDatabaseClient GetConnection(ConnectionDispatcher dispatcher) { Guard.ThrowIfNull(dispatcher, "dispatcher"); return(Factory.CreateNewClient(dispatcher.GetRandomConnection())); }
public override KdbPlusDatabaseClient CreateBalancingClient(ConnectionDispatcher dispatcher) { return(new BalancingKdbPlusDatabaseClient(dispatcher)); }