and the IRestResponse should resolve to interface IRestResponse but I'm getting an error even tho I have added using RestSharp; What do I need to change/alter so this code works correctly?
I have this code for setting up DI in my worker service project https://pastebin.com/6HH5sBAx
But when I run my code I get this error
System.AggregateException: 'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Microsoft.Extensions.Hosting.IHostedService Lifetime: Singleton ImplementationType: WorkerService1.Worker': A circular dependency was detected
System.AggregateException: 'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Microsoft.Extensions.Hosting.IHostedService Lifetime: Singleton ImplementationType: WorkerService1.Worker': A circular dependency was detected