so I am having some DI issues which I do not understand. I saw a few posts similar and I tried what they recommended but I have not had any luck. Here is the error I am getting
"Unable to resolve service for type 'IRetrieveService' while attempting to activate 'UpdateService'
Here is how I have my update service setup
private readonly IAsyncPolicy<SaveDocumentsResult> _processDocumentUpdatesPolicy;
private readonly IRetrieveService _retrieveService;
private readonly ISaveService _saveService;
public UpdateService(
IAsyncPolicy<SaveDocumentsResult> processDocumentUpdatesPolicy,
IRetrieveService retrieveService,
ISaveService saveService)
{
_processDocumentUpdatesPolicy = processDocumentUpdatesPolicy ?? throw new ArgumentNullException(nameof(processDocumentUpdatesPolicy));
_retrieveService = retrieveService ?? throw new ArgumentNullException(nameof(retrieveService));
_saveService = saveService ?? throw new ArgumentNullException(nameof(saveService));
}
Finally, I have this where I have added my services
Services.AddScoped<IRetrieveService, RetrieveService>();
Services.AddScoped<ISaveService, SaveService>();