How can I register a decorator class when using Microsoft.Extensions.DependencyInjection as the container?
When registering my types in the following way (similar to Castle Windsor) I get a "System.InvalidOperationException : A circular dependency was detected" error on resolving the IMyService type:
services.AddSingleton<IMyService, MyService>();
services.AddSingleton<IMyService, MyServiceDecorator>();
Decorator registration does not appear to be supported out the box but is there any way to add support or get round the problem?