Repository navigation
Unable to Inject IMemoryStore in my project using VolatileMemoryStore. #8625
|
using the example provided in the class PluginSelectionWithFilters.cs, I tried to apply the same logic to my app. builder.Services.AddSingleton<IMemoryStore, VolatileMemoryStore>(); I can't find VolatileMemoryStore. I tried updating all my packages, but it didn't work. Anyone has any ideas? |
Replies: 3 comments 3 replies
|
westey (@westey-m) - can you double check this is still available? |
|
eKh (@Elio-Khater), do you have a code snippet that you can share that reproduces the issue? E.g. can you show how/where are you consuming IMemoryStore and how you are resolving the consuming classes, etc? |
|
westey (@westey-m), here is my FunctionProvider.cs : public class FunctionProvider : IFunctionProvider } |
Thanks eKh (@Elio-Khater). The issue is going to be somewhere around how the function provider is constructed/resolved or how whatever consumes it is constructed/resolved. I don't see anything wrong with how you are registering the Memory Store or Function provider, so the issue must be around how it's constructed/resolved from DI. If you can share more information about how you are doing that, we might be able to spot the issue.