public InferenceHistoryLoader( AConnection db, ASafeLog log, int customerID, DateTime now, bool includeTryOutData, int historyLength, BucketRepository bucketRepo, TimeoutSourceRepository timeoutSourceRepo, EtlCodeRepository etlCodeRepo ) : base( db, log, 0, customerID, now, historyLength, includeTryOutData, 0, bucketRepo, timeoutSourceRepo, etlCodeRepo ) { } // constructor
protected AInferenceLoaderBase( AConnection db, ASafeLog log, long responseID, int customerID, DateTime now, int historyLength, bool includeTryOutData, decimal monthlyPayment, BucketRepository bucketRepo, TimeoutSourceRepository timeoutSourceRepo, EtlCodeRepository etlCodeRepo ) : base(db, log, customerID, now) { this.resultSet = new SortedDictionary <long, Inference>(); this.models = new SortedDictionary <long, PublicModelOutput>(); Results = new List <Inference>(); this.responseID = responseID; this.historyLength = historyLength; this.includeTryOutData = includeTryOutData; this.monthlyPayment = monthlyPayment; this.bucketRepo = bucketRepo; this.timeoutSourceRepo = timeoutSourceRepo; this.etlCodeRepo = etlCodeRepo; } // constructor
internal InferenceLoader( AConnection db, ASafeLog log, int customerID, DateTime now, bool includeTryOutData, decimal monthlyPayment, BucketRepository bucketRepo, TimeoutSourceRepository timeoutSourceRepo, EtlCodeRepository etlCodeRepo ) : base( db, log, 0, customerID, now, 1, includeTryOutData, monthlyPayment, bucketRepo, timeoutSourceRepo, etlCodeRepo ) { } // constructor
} // LoadTimeoutSources private EtlCodeRepository LoadEtlCodes(bool doLoad = true) { var repo = new EtlCodeRepository(this.db, this.log); if (doLoad) { repo.Load(); } return(repo); } // LoadEtlCodes
} // constructor internal InferenceLoader( AConnection db, ASafeLog log, long responseID, int customerID, BucketRepository bucketRepo, TimeoutSourceRepository timeoutSourceRepo, EtlCodeRepository etlCodeRepo ) : base(db, log, responseID, customerID, DateTime.UtcNow, 1, true, 0, bucketRepo, timeoutSourceRepo, etlCodeRepo) { } // constructor
public InferenceSaver( AConnection db, ASafeLog log, long requestID, Response <Reply> response, BucketRepository bucketRepo, TimeoutSourceRepository timeoutSourceRepo, EtlCodeRepository etlCodeRepo ) : base(db, log) { this.requestID = requestID; this.response = response; this.bucketRepo = bucketRepo; this.timeoutSourceRepo = timeoutSourceRepo; this.etlCodeRepo = etlCodeRepo; ResponseID = 0; } // constructor