Exemple #1
0
 /// <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))
 {
 }
Exemple #2
0
 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));
 }