Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VQuerySchedule"/> class.
 /// </summary>
 /// <param name="serverConnections">The <see cref="VServerConnections"/> handling the <see cref="NpgsqlConnection"/> of the schedule.</param>
 /// <param name="serverErrors">The <see cref="VServerErrors"/> handling the <see cref="VServerError"/> of the schedule.</param>
 public VQuerySchedule(VServerConnections serverConnections, VServerErrors serverErrors)
 {
     this.serverConnections   = serverConnections ?? throw new ArgumentNullException(nameof(serverConnections));
     this.serverErrors        = serverErrors ?? throw new ArgumentNullException(nameof(serverErrors));
     this.Queries             = new List <VQuery>();
     this.lastSavedQueryIndex = 0;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VServerConnections"/> class.
 /// </summary>
 /// <param name="arguments">The <see cref="VServerConnectionArguments"/> used to connect with the server.</param>
 /// <param name="errors">The <see cref="VServerErrors"/> used to handle <see cref="VServerError"/>.</param>
 public VServerConnections(VServerConnectionArguments arguments, VServerErrors errors)
 {
     this.Arguments   = arguments;
     this.Errors      = errors;
     this.Connections = new List <NpgsqlConnection>();
 }