File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Sentiment/Wikiled.Sentiment.Analysis/Containers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public IServiceCollection ConfigureServices(IServiceCollection services)
4141 services . AddSingleton < ISentenceRepairHandler , SentenceRepairHandler > ( ) ;
4242 services . AddSingleton < IExtendedWords , ExtendedWords > ( ) ;
4343
44- services . AddScoped < IMemoryCache > ( c => new MemoryCache ( new MemoryCacheOptions ( ) ) ) ;
44+ services . AddSingleton < IMemoryCache > ( c => new MemoryCache ( new MemoryCacheOptions ( ) ) ) ;
4545
4646 services . AddTransient < IWordFactory , WordOccurenceFactory > ( ) ;
4747
@@ -62,8 +62,8 @@ public IServiceCollection ConfigureServices(IServiceCollection services)
6262 . AddFactory < ITextSplitter , ITextSplitter > ( ) ;
6363
6464 services . AddTransient < IProcessingPipeline , ProcessingPipeline > ( ) ;
65- services . AddTransient < ITestingClient , TestingClient > ( ) ;
66- services . AddTransient < ITrainingClient , TrainingClient > ( ) ;
65+ services . AddTransient < ITestingClient , TestingClient > ( ) . AddFactory < ITestingClient , TestingClient > ( ) ;
66+ services . AddTransient < ITrainingClient , TrainingClient > ( ) . AddFactory < ITestingClient , TestingClient > ( ) ;
6767
6868 services . AddScoped < SessionContext > ( ) . As < ISessionContext , SessionContext > ( ) ;
6969 services . AddScoped < IContextWordsHandler , ContextWordsDataLoader > ( ) ;
You can’t perform that action at this time.
0 commit comments