Exemplo 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);
 }
Exemplo n.º 2
0
 public PythonRecommendationEngineCache(PythonEngineOptions options)
 {
     _options = options;
 }