Esempio n. 1
0
 public PythonRecommendationEngine(DbContextOptions <Database.DatabaseContext> dbContextOptions, PythonEngineOptions options)
 {
     _options          = options;
     _dbContextOptions = dbContextOptions;
     if (!PythonEngine.IsInitialized)
     {
         PythonEngine.Initialize();
         PythonEngine.BeginAllowThreads();
     }
     _cache = new PythonRecommendationEngineCache(options);
 }
Esempio n. 2
0
 public PythonRecommendationEngineCache(PythonEngineOptions options)
 {
     _options = options;
 }